Re: useDaylightTime() ??
Re: useDaylightTime() ??
- Subject: Re: useDaylightTime() ??
- From: Jesse Tayler <email@hidden>
- Date: Sat, 18 Aug 2012 20:43:21 -0400
On Aug 16, 2012, at 1:28 PM, Chuck Hill <email@hidden> wrote:
> When the date data is formatted in a human readable form, that is when the time zone comes into play. Try formatting with both the Java SimpleDateFormat (which I recommend using in any case) and NSTimestamp formatter. Any difference would indicate a bug in NSTimestampFormatter or in the underlying time zone data it is using. If they are both wrong, something else is going on.
Thanks Ramsey and Chuck!
I'm using ERRest and an iPhone client (.bplist)
I added Ramsey's suggested timezone assurances to the app, but it already seems to think in GMT
I note: ERRest reports a dates with the expected GMT running on the server or my laptop:
"created" = "2012-08-19 00:27:45 Etc/GMT";
The WO App creates a new object and sets the created date with the same result - an hour early -59 minutes, etc.
If the database and app are both GMT and the app is reporting GMT dates, then what's left for the hour off thing?
Oddly, in a situation where I set an adjusted date on the iPhone client, it seem to be of the correct time when that time is reported back to the iPhone again from the server.
If the date is create by the WO app, it is off - if it is created on the iPhone client, it seems right.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden