Set simulator to GMT and not CST

25 views
Skip to first unread message

Gareth Murfin

unread,
Feb 19, 2016, 6:03:39 AM2/19/16
to CodenameOne Discussions
How can we set the timezone of the simulator?

Gareth Murfin

unread,
Feb 19, 2016, 6:41:52 AM2/19/16
to CodenameOne Discussions
i tried with location simulation but theres a bug

java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at java.lang.Double.<init>(Double.java:608)
at com.codename1.impl.javase.LocationSimulation.jButton1ActionPerformed(LocationSimulation.java:309)
at com.codename1.impl.javase.LocationSimulation.access$400(LocationSimulation.java:39)
at com.codename1.impl.javase.LocationSimulation$2.actionPerformed(LocationSimulation.java:223)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)

Shai Almog

unread,
Feb 20, 2016, 1:03:40 AM2/20/16
to CodenameOne Discussions
Location simulation won't change the locale.
That exception means you need to enter a number into the fields to represent lat/lon position.

You can change the OS locale and it will affect the simulator as far as I recall but we should probably add better means of doing this explicitly.

Gareth Murfin

unread,
Mar 2, 2016, 6:24:07 PM3/2/16
to CodenameOne Discussions
Yes it would be great to select a proper timezone, it really causes head confusion being cst, thanks :-))) 
Reply all
Reply to author
Forward
0 new messages