Automatically convert DateTimes to UTC #7

Merged
merged 1 commit into from Dec 19, 2012

2 participants

@wapcaplet

In DateTimeConverter#to_java, if the given value is a DateTime, it is
automatically converted to UTC using DateTime#new_offset(0). Date and
Time objects are left alone, since they don't respond to new_offset.

Spec tests included.

@wapcaplet wapcaplet Convert DateTimes to UTC
In DateTimeConverter#to_java, if the given value is a DateTime, it is
automatically converted to UTC using DateTime#new_offset(0). Date and
Time objects are left alone, since they don't respond to new_offset.

Spec tests included.
8c8a767
@andreasronge

Thanks a lot !

@andreasronge andreasronge merged commit 50ac3e7 into andreasronge:master Dec 19, 2012

1 check passed

Details default The Travis build passed
@andreasronge andreasronge added a commit to neo4jrb/neo4j that referenced this pull request Dec 28, 2012
@andreasronge Dates are now stored as UTC, see andreasronge/neo4j-wrapper#7
Updated RSpecs
8c1c0f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment