Feature #41989
Assume integer values to be timestamps in DateTime converter
Status: | Resolved | Start date: | 2012-10-14 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | - | |||
Target version: | - |
Description
The DateTime TypeConverter cannot transform integer values to a DateTime object
because of a strict check for string.
Additionally accept integer values and also assume plain digits to be a timestamp
and use "U" as date format if no additional configuration is given.
Associated revisions
[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
History
#1 Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15611
#2 Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15611
#3 Updated by Gerrit Code Review almost 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15611
#4 Updated by Gerrit Code Review almost 3 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15611
#5 Updated by Gerrit Code Review over 2 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/15611
#6 Updated by Helmut Hummel over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:4c800987247b122a91eb3e2a599f2e8eb9ad57af.