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

Time property is not stored properly with respect to utc_offset values #231

Open

Description

@dantler

Hi,

It seems like DataMapper and Ruby have two different ideas about how to store and retrieve Time objects. The following few lines show the issue. Pay particular attention to the offsets!

t
# => #<Time @value=2012-10-11 13:05:40 +0900>
Meeting.create(:begin => t)

m = Meeting.all(:begin => t)
m.query
# => #<DataMapper::Query ... @conditions=(begin = 2012-10-11 13:05:40 +0900)>
m.first
# => #<Meeting @id=2 @begin=2012-10-11 13:05:40 -0700 ...>

I have created a repository with the issue using Postmodern's bug report template, see: https://github.com/dantler/dm-bug-report . Please let me know if I can provide more assistance!

Thanks,
David

Activity

  1. dantler commented on Oct 12, 2012

    @dantler
    Author

    I updated this issue with a simpler problem description. Figure it deserves a bump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions