#837 .DateTime~fromISOUTCDate fails

v4.0.1
closed
Classes (182)
5
2012-08-14
2009-10-06
No

REXX-ooRexx_4.0.0(MT) 6.03 15 Aug 2009 Win/XP SP3

isodate = '2009-10-06T06:15:22.00+0000'
say isodate
now = .datetime~fromutcisodate(isodate)

produces

Error 88 running E:\work.ooRexx\3.x\main.4.0.0.release\Win32Rel\CoreClasses.orx line 2182: Invalid argument
Error 88.918: Argument date is not in a valid format; found "2009-10-06"

it's actually line 2177 failing on the time() call, so the error message is somewhat misleading for the user

.datetime~fromISODate() fails similarly when the zone is removed from the argument

Discussion

  • Rick McGuire

    Rick McGuire - 2009-10-06

    Committed revision 5238.

    Note that the input string you used above is not in correct ooRexx ISO UTC format. The decimal part is 6 digits long. However, it's a fairly simple matter to support less than 6 digits, so I fixed that. The error message was also using the wrong value for the incorrect format.

     
  • Rick McGuire

    Rick McGuire - 2010-02-23

    Committed revision 5596.

    4.0.1 merge

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-09-08

    The fix for this item was in the 4.0.1 release.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks