File template variable ${TIME} is wrong

In PHPStorm, the file template variable ${TIME} renders as one hour ahead of my system time.

Does anybody know why this might be happening?

3 comments
Comment actions Permalink

Hi David,

Which time zone do you have on your computer? I'm in GMT and it works ok for me (it puts the current system time).

To test I have changed it to Moscow (which is +3) while having PhpStorm still running and PhpStorm still used GMT time. After I have restarted PhpStorm it picked up new timezone and correct system time was used. May this be your case?

I'm on Windows XP, PS-103.220

0
Comment actions Permalink

It worked!  When I switched the time zone on my PC to Moscow, it picked up the time zone change after restarting PHPStorm.  Then I simply changed it back to Pacific Time Zone and now it's where it should be, showing system time.  I have a hunch this issue was related in part to daylight-savings settings, but in any case it's working now. Thank you!

0
Comment actions Permalink

Hello! I've the same problem now. I'm in Moscow time, but PhpStorm show +1 hour ahead. I have changed it to UTC time and restart IDE - time in ${TIME} became ok. But then i change it back to Moscow (UTC +3) and nothing happened - time became incorrect.

My system is Windows 10, PS-145.258

0

Please sign in to leave a comment.