java - How to get the TimeZone of the local machine in JodaTime? -
how can detect timezone local machine in?
i tried datetimezone.getdefault()
not give me eg timezone "germany" if machine in germany.
is possible @ all?
datetimezone.getdefault()
return id of timezone should berlin, if host located in germany.
in formatter have formatter.withzone(datetimezone.getdefault()).parsedatetime(yourdatetime)
in order have timezone in string.
Comments
Post a Comment