On Aug 16, 2012, at 1:28 PM, Chuck Hill <[email protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to