Friday, 15 July 2011

java - how TimeZone.getDefault() works? -



java - how TimeZone.getDefault() works? -

my server in , accessing application in republic of india through web browser, in case timezone.getdefault() return? if returns time zone based on republic of india on basis of return?

i have changed in command panel setting different locale , different time zone of scheme though not changing based on settings.

i have written code fallows...

def dateformat = dateformat.getdatetimeinstance(dateformat.default,dateformat.default,locale.getdefault()) dateformat.settimezone(timezone.getdefault())

it's going homecoming timezone of jvm timezone.getdefault() executed on. if application running on server in india, "asia/calcutta".

java

No comments:

Post a Comment