Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting incorrect time leading by 1 hour with Europe/Moscow timezone

Tags:

java

timezone

For our Russia tenant we are using "Europe/Moscow" timezone. But we are getting time with 1 hour ahead of the correct time.

Europe/Moscow is UTC+3 hours. But when I am print date formated with Europe/Moscow timezone getting 1 hour ahead of the correct time.

Thanks, Syamala.

like image 630
Syamala Avatar asked Nov 13 '14 11:11

Syamala


1 Answers

I notice that there was a legislative change to Russian time zone definitions in October 2014; chances are that your JRE simply doesn't know about it yet.

The Java Timezone Updater Utility should be able to fix this for you. As time passes, the updated time zone definitions should also eventually get included by default in newer JREs (although that admittedly doesn't help you right now).

like image 162
Scott Dudley Avatar answered Sep 22 '22 07:09

Scott Dudley