-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCJS Java 1.7 does not have TimeZone #5
Comments
That would help, the relevant issue is here #2. Locale appears to be a bit weird in Javascript, according to scala-js/scala-js#1773 Currently doing some work on putting Array util methods in Scala.js, so didn't have time for Locale |
The equivalent of SodaTime in ClojureScript is https://github.com/andrewmcveigh/cljs-time. clj-time (without the 's', so is on the JVM) wraps JodaTime, so cljs-time (being clj-time inspired) does too. So not having TimeZone capabilities on the browser is expected, and I'm going to close this. |
I know that Moment allows you to get the timezone from the browser, so I will have a look at their implementation before completely closing this off. I know you can get the offset. Thing is, that Joda Time (and hence Soda Time), do have a concept of timezone, but it may just be that the server will set the timezone for the client, rather than trying to auto detect it. Will have a look into this myself |
No
java.util.TimeZone
in SCJS was why I started using SodaTime. But Joda requires it so I'm back to square one. I read the other issue where it talked aboutLocale
not being able to be supported. I would argue thatTimeZone
is important from the point of view of all clients being able to view the time at the server, which some applications may require. If you like I could investigate how Clojurescript overcomes some of these problems...The text was updated successfully, but these errors were encountered: