Reputation: 15214
I'm faced with strange problem: Maven shows different time than system. For example:
$ mvn compile | grep Finished
[INFO] Finished at: Wed Jan 04 13:29:50 NOVT 2012
$ LANG=C date
Wed Jan 4 14:29:55 NOVT 2012
Here Maven's time differs to 1 hour back.
I've googled and found very similar question here, at SO: new Date(long) gives different results but none of suggested ways doesn't work for me: specifying -Duser.timezone=Asia/Novosibirsk
or -Duser.language=ru
and -Duser.country=RU
do not affects Maven's behavior.
I think the problem at underlying system's tzdata, because at previours year we stop to moving hours from summer time. I've installed latest tzdata-java
package but nothing changed.
Versions:
tzdata
/tzdata-java
2011n-0squeeze1BTW, in my IDE (Springsource Tool Suite) I've similar problem.
Thanks in advance!
(And feel free to remove one or more tags which is not really relevant to problem.)
Upvotes: 4
Views: 3231
Reputation: 15214
I successfully fix this by running tzupdater
and patch installed JDK.
More about Timezone Updater Tool.
Upvotes: 3