datamapper / dm-types

DataMapper plugin providing extra data types
http://datamapper.org/
MIT License
55 stars 80 forks source link

Incompatible logic between dm-timestamps and EpochTime #34

Closed d11wtq closed 13 years ago

d11wtq commented 13 years ago

dm-timestamps sets :created_at to DateTime.now (logical). EpochTime then converts that DateTime to UTC offset zero, thus completely breaking DST. Here's a failing spec to give you an example ;) I haven't looked into a fix yet.

https://gist.github.com/1033857

d11wtq commented 13 years ago

I think this spec might be TimeZone-sensitive, if you try it and it passes, set your TimeZone to Melbourne/Australia and try again ;)

d11wtq commented 13 years ago

Problem with Timecop, not with EpochTime. I'm never using that thing again... wasted a whole day on this.