DST_OFFSET undefined

11 views
Skip to first unread message

poll...@outlook.com

unread,
Apr 26, 2018, 8:48:00 PM4/26/18
to CodenameOne Discussions

IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

In the following, why are getDSTSavings() and DST_OFFSET undefined?

        Calendar now = Calendar.getInstance();  
        int daylightsavings1 = now.getTimeZone().getDSTSavings();
        int daylightsavings2 = now.get(Calendar.DST_OFFSET);

Shai Almog

unread,
Apr 27, 2018, 12:20:05 AM4/27/18
to CodenameOne Discussions
We can probably add them but changing the VM is often painful. Try using this instead: https://www.codenameone.com/blog/date-util.html

Russ Lynch

unread,
Apr 27, 2018, 1:00:53 AM4/27/18
to codenameone...@googlegroups.com

DateUtil is undefined… how to I resolve it?

 


From: codenameone...@googlegroups.com <codenameone...@googlegroups.com> on behalf of Shai Almog <shai....@gmail.com>
Sent: Friday, April 27, 2018 12:20:05 AM
To: CodenameOne Discussions
Subject: [codenameone-discussions] Re: DST_OFFSET undefined
 
We can probably add them but changing the VM is often painful. Try using this instead: https://www.codenameone.com/blog/date-util.html

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/IVLFQYa7qRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/dc4ba095-31d1-4a09-99eb-e65e3d0389fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

poll...@outlook.com

unread,
Apr 27, 2018, 11:35:47 AM4/27/18
to CodenameOne Discussions
  • com.codename1.util.DateUtil

is undefined in util ... how do I resolve it?

Steve Hannah

unread,
Apr 27, 2018, 12:53:09 PM4/27/18
to codenameone...@googlegroups.com
Update your Codename One Libs.  (Project properties > Update libs)


--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages