The timezone in App Engine is always set to UTC and cannot be changed.
You'll need to convert between UTC and the timezone you wish to use. You
can refer to one of the numerous existing threads
<https://www.google.ca/search?q=app+engine+set+timezone> on the subject for
more background.
On Friday, March 3, 2017 at 11:48:41 PM UTC-5, Yashavanta S B wrote:
>
> Hey,
>
> In ServletContextListener initialization method we are setting the JVM
> Time Zone as
>
> public void contextInitialized(ServletContextEvent event) {
> TimeZone.setDefault(TimeZone.getTimeZone("GMT+00:00"));
> }
>
> But when i check the Time Zone information in servlets and filters the
> Time Zone got changed.
>
> log.info("TimeZone : " + TimeZone.getDefault());
>
> What might be the reason?
>
> Thanks
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/654a561f-3af9-46e0-9e7a-ac303a6fae8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.