Issue in codename one

22 views
Skip to first unread message

mma...@gmail.com

unread,
Sep 12, 2017, 10:50:16 AM9/12/17
to CodenameOne Discussions
IDE: NetBeans
Simulator & android

Hi I found a problem in codename one
I was trying to send local notification in a specific time
So I used Calendar.getinstance() from java.utill
To get the time
When I try to get hour in simulator It returns 2 if it is 1 or 6 if it is 5 but when I made an android build it returned the right value (returns 1 if it is 1 or 2 if it is 2)
I hope you understood me
Sorry for my English 😅

diamon...@gmail.com

unread,
Sep 12, 2017, 11:56:03 AM9/12/17
to CodenameOne Discussions
Hi,

Are you sure this is a bug? And not that the calendar is pulling another time zone hour on your IDE?

mma...@gmail.com

unread,
Sep 12, 2017, 12:07:08 PM9/12/17
to CodenameOne Discussions
How to check it out ?

diamon...@gmail.com

unread,
Sep 12, 2017, 12:32:12 PM9/12/17
to CodenameOne Discussions
System.out.println(java.util.Calendar.getInstance().getTimeZone());


Reply all
Reply to author
Forward
0 new messages