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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -