Ticket #880 (new enhancement)

Opened 3 months ago

Last modified 2 months ago

TSimpleDateFormatter: Formatting dates before 1970-01-01 throws TInvalidDataValueException

Reported by: falke Owned by: xue
Priority: normal Milestone: 3.1.3
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords:
Cc:

Description

Formatting a date with TSimpleDateFormatter->getDate() throws an TInvalidDataValueException if the date is before 1970.01.01. Those dates should be permitted and I suggest to simply eliminate the check

if($date < 0)

.

Change History

Changed 2 months ago by knut

  • summary changed from Formatting dates before 1970-01-01 throws TInvalidDataValueException to TSimpleDateFormatter: Formatting dates before 1970-01-01 throws TInvalidDataValueException
  • milestone set to 3.1.3
Note: See TracTickets for help on using tickets.