gino1234 / wogwt

Automatically exported from code.google.com/p/wogwt
0 stars 0 forks source link

Timestamp not correct on iPad #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I used NSTimestamp. The timezone is CET (gmt + 2 in summer) on the server.
Date are show on wogwt client. They are  ok every where except in iPad (iPhone 
ok !)

On iPAd, there is a 9h difference in the past. What can explain that ?
Time zone is lost ?

Thanks in advance for any idea

Pierre
NB : I want to show the time with the server timezone

Original issue reported on code.google.com by pierregi...@gmail.com on 5 Oct 2013 at 8:10

GoogleCodeExporter commented 8 years ago
I was wrong. It's not a device related problem.
The dates are show in locale timezone.

The problem is now just : how to show date with server (cet) timezone ?

Thanks 

Original comment by pierregi...@gmail.com on 5 Oct 2013 at 9:10

GoogleCodeExporter commented 8 years ago
You can create an RPC method that returns an NSTimestamp and that should keep 
the server time when serialized to the client.  But unless you have to have an 
NSTimestamp you would be better off using java.util.Date.

Original comment by johnth...@gmail.com on 6 Oct 2013 at 1:12