Page 1 of 1

[Fix] Formatdate doesn't like "explicit" fraction of seconds

Posted: 07 Dec 2013 11:20
by Marco
This

Code: Select all

 text formatdate("1999-12-12 23:59:59.9999999", "yyyy-mm-dd hh:nn:ss.fffffff", "s", -1);
should give "1999-12-12 23:59:58.9999999", but instead I get an invalid date error.
Funny thing, not specifying any date (i.e. letting XY using now()) works.

Re: Formatdate doesn't like "explicit" fraction of seconds

Posted: 07 Dec 2013 11:53
by admin
Confirmed + fixed.

Re: Formatdate doesn't like "explicit" fraction of seconds

Posted: 07 Dec 2013 12:24
by Marco
Thanks!

Re: [Fix] Formatdate doesn't like "explicit" fraction of sec

Posted: 07 Dec 2013 12:42
by admin
No problem, it's my job. Well, actually it's my job not to create the bug in the first place. :whistle: