Created
September 11, 2018 16:26
-
-
Save iamitshri/53e8565a4cdedf2667156914815b275d to your computer and use it in GitHub Desktop.
Setting the default timezone for spring boot app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PostConstruct | |
void started() { | |
TimeZone.setDefault(TimeZone.getTimeZone("UTC")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment