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 
where it really needs to calculate with local timezones. I don't 
understand, why you would want to test a different date behavior in 
development server. Even if it would be possible in dev server, you can be 
sure that the app will break once it is deployed.

On Monday, 6 March 2017 06:20:22 UTC+1, Yashavanta S B wrote:
>
> 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 AM UTC+5:30, Adam (Cloud Platform 
> Support) wrote:
>>
>> 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
>>>
>>>
-- 
HATZIS Edelstahlbearbeitung GmbH
Hojen 2
87490 Haldenwang (Allgäu)
Germany

Handelsregister Kempten (Allgäu): HRB 4204
Geschäftsführer: Paulos Hatzis, Charalampos Hatzis
Umsatzsteuer-Identifikationsnummer: DE 128791802

http://www.hatzis.de/

-- 
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/b90f74d9-df4a-42e9-9512-4e9568efa73a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Yashavanta S B
    • [google-appen... 'Adam (Cloud Platform Support)' via Google App Engine
      • [google-a... Yashavanta S B
        • [goog... Anastasios Hatzis
          • [... Yashavanta S B
            • ... 'Adam (Cloud Platform Support)' via Google App Engine
              • ... 'Nicholas (Google Cloud Support)' via Google App Engine
              • ... Yashavanta S B
                • ... 'Adam (Cloud Platform Support)' via Google App Engine

Reply via email to