[google-appengine] Re: appengine TimeZone changed

2017-03-13 Thread 'Adam (Cloud Platform Support)' via Google App Engine
Try adding -Duser.timezone=UTC to your list of Maven command line arguments when starting the development server. If the timezone is different this looks like it could be a recurrence of an issue that was reported 4 years ago on Stack Overflow , but

[google-appengine] Re: appengine TimeZone changed

2017-03-10 Thread Yashavanta S B
The issue is still there, even without setting the default time zone to GMT+00:00 in the ServletContextLIstener. Servlet is showing different timezone in development server. On Wednesday, March 8, 2017 at 12:59:54 AM UTC+5:30, Adam (Cloud Platform Support) wrote: > > The development server

[google-appengine] Re: appengine TimeZone changed

2017-03-10 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
I wholeheartedly agree with the recommendations of the community posted here. I will nevertheless reach out to the documentation team to see if and where this behavior can be documented. On Tuesday, March 7, 2017 at 2:29:54 PM UTC-5, Adam (Cloud Platform Support) wrote: > > The development

[google-appengine] Re: appengine TimeZone changed

2017-03-07 Thread 'Adam (Cloud Platform Support)' via Google App Engine
The development server time zone also defaults to UTC, so the solution is to not try to change it to anything and instead write your code to work the same way in production and development (that is, to deal with times that are in UTC). On Tuesday, March 7, 2017 at 12:30:20 AM UTC-5, Yashavanta

[google-appengine] Re: appengine TimeZone changed

2017-03-06 Thread Yashavanta S B
Thank you for the information. But my question is - why it is showing the different time zone in servlets and filters, even when we are setting the default time zone to GMT+00:00. The issue is with the local development server. But in the production server it is fine. On Monday, March 6, 2017

[google-appengine] Re: appengine TimeZone changed

2017-03-05 Thread Anastasios Hatzis
There are really good reasons why an app should not change timezones on the server and why to store all datetimes in UTC. This is especially true in all distributed systems. The app must be designed in a way that it can convert from/to UTC while exchanging data with the outside world or only

[google-appengine] Re: appengine TimeZone changed

2017-03-05 Thread Yashavanta S B
Thanks for the reply. What about in development server? Can we change the app-engine time zone in development server? Because we want to test date behavior for different time zones and we are facing the difficulties in testing the different time zone dates. On Sunday, March 5, 2017 at 3:44:33

[google-appengine] Re: appengine TimeZone changed

2017-03-04 Thread 'Adam (Cloud Platform Support)' via Google App Engine
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 on the subject for more background. On