#1074 ✓not-applicable

Wrong DateTime typecasting

Reported by teamon | October 3rd, 2009 @ 01:02 PM | in 0.10.2

When DateTime property is set using hash it sometimes does not convert it to datetime object (which causes errors)

The problem is that for instance {"month" => "08"} is not converted ( {"month" => "8"} would pass)


Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) October 7th, 2009 @ 01:17 PM

    • Milestone set to 0.10.2
    • State changed from “new” to “accepted”
    • Assigned user set to “Dan Kubb (dkubb)”
  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) November 10th, 2009 @ 02:41 AM

    • State changed from “accepted” to “not-applicable”

    For now we are going to keep the strict typecasting behavior, and will not be coercing "08" into the integer 8.

    While this might make sense to do for HTML helper methods that zero-pad numbers, it can't be assumed that this behavior would hold across the board for all DM use cases.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket