#43 ✓resolved
Adam Alexander

Code for Time Zone support in incoming datetime values

Reported by Adam Alexander | February 11th, 2009 @ 10:37 PM | in ObjectiveResource 1.01

Good evening, just a quick note and code: when time zone support is enabled in a rails app, the normal datetime values that end in a capital Z are replaced with values that end in the time zone in offset format such as -05:00. ObjectiveSupport was handling the default GMT times just fine but after enabling time zone support in a rails app, all NSDate values would be null after retrieving from server. The following gist enables ObjectiveSupport to work equally well with GMT and time zone offset times:

https://gist.github.com/ba6ee59a...

And, no unit tests were broken!

Thanks for everything,

Adam

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Port of Rails' ActiveResource framework to the iPhone.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages