Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2348

incorrect behaviour when parsing strings as time

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.6
    • Affects Version/s: None
    • Component/s: None
    • None

      When parsing strings as time the ActiveSupport::TimeZone.parse was returning nil on malformed Time strings and then converting into a float of 0.0 and becoming a Time. However the Time.parse throws the expected ArgumentError which mongoid throws back to the user.

      Possible fix for 2349

            Assignee:
            Unassigned Unassigned
            Reporter:
            camallen camallen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: