Bug #4734
Invalid string to date conversion for non-"mm/dd/yyyy" format
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Stanislav Lomany about 6 years ago
Testcase:
def var d1 as date init "01.01.2020".
def var d2 as date.
d2 = date("01.01.2020").
message d1 = d2.
Progress output:
yes, FWD: no.
Testcase converts to:
date d1 = UndoableFactory.date(date.fromLiteral("01.01.2020"));
...
d2.assign(new date("01.01.2020"));
The problem is date.fromLiteral which has fixed mm/dd/yyyy parsing format, while date constructor uses date.WorkArea.dateFormat for parsing.
It is desirable to make other testcases to make sure all date formats are properly converted.
datetime.fromLiteral and datetime.fromLiteral look like they have the same issue too.
#2 Updated by Eric Faulhaber about 6 years ago
- Start date deleted (
07/03/2020)
Which FWD branch/revision?
#3 Updated by Stanislav Lomany about 6 years ago
Which FWD branch/revision?
I've tested it against trunk rev 11347.