Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

dm-rails should be timezone aware #7

Open
solnic opened this issue May 17, 2011 · 2 comments
Open

dm-rails should be timezone aware #7

solnic opened this issue May 17, 2011 · 2 comments

Comments

@solnic
Copy link
Contributor

solnic commented May 17, 2011

This is how activerecord works:

Time.zone = 'Athens'
Post.first.created_at # => Thu, 27 May 2010 19:28:01 EEST +03:00

Time.zone = 'London'
Post.first.created_at # => Thu, 27 May 2010 17:28:01 BST +01:00

Datamapper ignores timezone. So to achieve the same effect you need to use in_time_zone method on time fields, which isn't very handy.


Created by kgiszczak - 2010-05-27 17:37:20 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1292

@solnic
Copy link
Contributor Author

solnic commented May 17, 2011

This ticket is related to https://datamapper.lighthouseapp.com/projects/20609/tickets/868

by Dan Kubb (dkubb)

@tpitale
Copy link
Member

tpitale commented Feb 7, 2016

@solnic I can take a look at this.

@tpitale tpitale self-assigned this Feb 7, 2016
@tpitale tpitale removed their assignment Jul 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants