Code for Time Zone support in incoming datetime values
Reported by Adam Alexander | 2009-02-11 22:37:52 UTC | 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
-

Joshua Vickery 2009-02-12 14:17:24 UTC
- Milestone set to ObjectiveResource 1.01
spectacular!
we'll need to update the unit tests to include this
-

Adam Alexander 2009-02-15 00:21:40 UTC
Also just FYI I have improved my local workflow here to include a personal copy of objectivesupport, so to test that out I submitted the same patch to my own copy of the project. That's available here:
http://github.com/adamalex/objec...
Thanks for everything!
Adam
-

Adam Alexander 2009-02-17 20:21:14 UTC
I just wanted to add that I verified that your latest commits all merged fine with my commit at http://github.com/adamalex/objec... and it still seems to do the trick as originally intended.
-

jjburka 2009-02-17 20:47:15 UTC
awesome , I was going to include your changes in what I commited but it must of slipped my mind. After those tickets get signed off we'll get them in
-

Ryan Daigle 2009-02-25 10:47:48 UTC
(from [63fdd3a4153cd5775948f5f3466a67dc4d5793f8]) [#43] added Adam Alexander's timezone support. Unit tests http://github.com/yfactorial/obj...
-

jjburka 2009-02-25 11:02:32 UTC
- Assigned user set to Joshua Vickery
moved in Adams changes and added some unit tests
-

Joshua Vickery 2009-02-26 08:17:43 UTC
heh, you've created a monster
http://github.com/yfactorial/obj...
The coverage target shows that the above method is never being tested. Of course, I never would have noticed if you hadn't gone and setup the tool ;)
-

Joshua Vickery 2009-02-26 08:17:47 UTC
- Assigned user changed from Joshua Vickery to jjburka
-

-

Ryan Daigle 2009-02-26 10:16:03 UTC
(from [d8116468d37b231b381903c1bec9c99a519197e0]) [#43] date formatting tests http://github.com/yfactorial/obj...
-

jjburka 2009-02-26 10:17:24 UTC
- Assigned user changed from jjburka to Joshua Vickery
100% on this file
-

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.
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.
People watching this ticket
Referenced by
-
43
Code for Time Zone support in incoming datetime values
(from [63fdd3a4153cd5775948f5f3466a67dc4d5793f8]) [#43] a...
-
43
Code for Time Zone support in incoming datetime values
(from [d8116468d37b231b381903c1bec9c99a519197e0]) [#43] d...