« Previous | Next » 

Revision 4c800987

ID4c800987247b122a91eb3e2a599f2e8eb9ad57af

Added by Helmut Hummel over 8 years ago

[FEATURE] Allow integer value as timestamp in DateTimeConverter

The DateTime TypeConverter cannot transform integer values to
a DateTime object because of a strict check for string.

Accept integer values and also assume plain digits to be
a timestamp and use "U" as date format if no additional
configuration is given.

Additionally change the is_numeric() checks to ctype_digit()
as is_numeric() would also allow float values.

Change-Id: I7d9f129fa574922f62396d508a7d2579469637a5
Resolves: #41989
Releases: 1.2

  • added
  • modified
  • copied
  • renamed
  • deleted