remote host view, change date format.

os: kubuntu 10.04
PhpStorm 1.0
build PS-95.192

in the 'Remote Host' panel in the top right hand corner there is the settings icon.  clicking on the settings icon allows the option to "Show Date".

With the "Show Date" option checked  the dates appear next to the file names.  Is it possible to change the format of this date?

currently uses the format mm/dd/yy

I would like it to be something different:
dd/mm/yy or
(x hours xx days ago)

also is there any way to turn on the date on the "Projects" panel?

Right now I am in a situation where there are 2 developers uploading to the server and  I need a way of checking that the file that im working on has changed or not.  As soon as its possible to sync a whole project to see what has changed this will become less important, but right now its hard to co-ordinate.

Thanks

8 comments
Comment actions Permalink

Hello Michael,

Currently PhpStorm shows dates according to system default settings (at least it is supposed to - please file an issue if you find it's not working).
Please file a feature request if you need to override this format, or change it to "xx ago" way.

As far as I know there's no option to turn on timestamps at Project view pane and I have never seen such a request yet. Version control systems seem to be sufficient for tracking local files state.

Regards,
Kirill

0
Comment actions Permalink

Hi Kirill

Thanks very much.

I checked all my system settings for my local machine and they are in the dd/mm/yy format that i want.  PhpStorm does not seam to apply these settings to the 'Remote Host' Panel

It might apply the servers default time format maybe...?  Nothing i can do about changing that because its not my machine.

The type of work i do is freelance work on several clients websites where they also hire other developers to do stuff on the site and also do stuff themselves.  So my situation is that sometimes im working on a site at the same time as other developers and need to know what changed, some times im coming back to a project i also have a local copy of and just want to update before i start work.

I can live with the weird date format for now because the feature i really am waiting for ('Recursively compare local file tree with remote  one') is already in the system.  Once that is going i wont need the date format feature anymore.

You are right, version control is excellent for a team but very rare in the kinds of projects i do other then for me working on the stuff i build.

Thanks
Michael

0
Comment actions Permalink

Btw, you can set up your local svn repository. It really helps when you are coming back to a project. In this case you can simply download all project files from server, press commit and see changes comparing to your old copy.

0
Comment actions Permalink

Hello Michael,

My mistake, Java machine reads the current locale setting from the underlying OS, but it does not seem to read the exact date format. If you'd like to have it configurable in PhpStorm, please file a feature request.

Regards,
Kirill

0
Comment actions Permalink

Hello Dmitriy,

Yes, and there's even more fast way with distributed VCS. For instance, if you use git all you need to set up the repository is to execute "git init" in the project root directory and you get your empty repo right in place. In does not require any server running, and PhpStorm/IDEA version control intergation will gracefully pick it up once you reopen your project.

Regards,
Kirill

0
Comment actions Permalink

Thanks for the tip, im currently using git to keep a record of the changes i make locally to the project so i can revert them if asked.

Its exactly that "download all project files from server, " that im trying to avoid.  I only want to download the files that have changed, not the whole project.

and i want to know what has changed so i can see what other developers have done or at least played with to keep an understanding of the big picture.

0
Comment actions Permalink

Hi Kirill,

Thanks for looking into that for me.  Ill pass on the feature request because the 'Recursively compare local file tree with remote  one'
got tagged as 'fix for 1.x'  so that will do me.

No sense in asking the developers for features that im not planning to use.

Michael

0
Comment actions Permalink

Michael,

We've provided a way to change timestamp format. It's a bit hacky, but works as a last resort:
1. close PhpStorm
2. open <PhpStorm home>\bin\PhpStorm.exe.vmoptions file (Windows/Linux) or PhpStorm.app/Contents/Info.plist (Mac) with text editor
3.Windows/Linux: add the following line to the end of the file:

-Dcom.jetbrains.plugins.webDeployment.timestamp_pattern=yyyy.MM.dd/G/HH:mm:ss/z

Mac:
add the above text to the end of the value of <string> tag that follows <key>VMOptions</key> tag, i.e.:

<key>VMOptions</key>
<string>-Xms16m -Xmx380m -XX:MaxPermSize=120m -Xbootclasspath/a:../lib/boot.jar -ea -agentlib:yjpagent=disablej2ee -Dcom.jetbrains.plugins.webDeployment.timestamp_pattern=yyyy.MM.dd/G/HH:mm:ss/z</string>


4. save the file, start PhpStorm

Pattern format is documented at http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html.

The only inconvenience that your setting will be lost when you install a new build of PhpStorm.

Regards,
Kirill

0

Please sign in to leave a comment.