Skip to content

Date/Time class not working as expected #17

@kapso

Description

@kapso

See issue below where today is greater than tomorrow

(main)> today = Date.today
=> Sat, 04 Jan 2014

(main)> tomorrow = Date.today + 1.day
=> Sun, 05 Jan 2014

(main)> today > tomorrow
=> true

(main)> today.to_time.to_i > tomorrow.to_time.to_i
=> true

I am using the following version - motion-support (0.2.6)

Gemfile:

gem "motion-support", require: false

Rakefile:

require "motion-support/core_ext/time"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions