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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -