SPEC: it("should return a readable created_at", function() {
LINE BEFORE: this.story.set({'created_at': "2011/09/19 02:25:56
+0000"});
Changed
from "expect(this.story.created_at()).toBe("19 Sep 2011, 2:25pm");"
to "expect(this.story.created_at()).toBe("18 Sep 2011, 10:25pm");",
but I do not understand why, so I will not check it in until I do.
I assume it has something to do with default datetime format and
timezones.
Any help would be appreciated.
Thanks for posting this Al. This basically works for me, because 02:25
GMT is equal to 2:25pm NZ time (my time zone).
Looking at it retrospectively, it's not going to work in any other time
zones where 02:25 does not convert to 2:25pm. 100% my bad.
I'll have a look at a way to effectively test the result independent of
the users time zone.
Thanks Al and Steven for taking the time to investigate this.
Malc