Bug #43363
closed
Syslog day header uses incorrect timestamp (with locale offset)
Added by Egbert van der Hout almost 12 years ago.
Updated about 6 years ago.
Category:
Backend User Interface
Description
Steps to reproduce¶
- Clear cache or do something else which creates a log line in syslog
- Go to Admin Tools > Log: the "day header" shows yesterday (in my case, Europe/Amsterdam).
Possible solution¶
TYPO3\CMS\Belog\Controller\AbstractController, line 204:
Change
$timestampDay = strtotime(strftime('%d.%m.%Y', $entry->getTstamp()));
to
$timestampDay = strtotime(strftime('%d.%m.%Y UTC', $entry->getTstamp()));
Old belog (in 4.5 .. 4.7) used to render the unix timestamps using straight calls to date():
sprintf($GLOBALS['LANG']->getLL('logForNonPageRelatedActionsOrRootLevelOrPage'),
$insertMsg,
date($this->dateFormat, $starttime),
date($this->dateFormat, $endtime)
),
Now with the extbase module it's not very easy to grasp where this conversion to UTC comes from.
I would prefer to keep it like it was before, displaying the same time which was displayed in previous TYPO3 versions, in order to avoid confusion after the upgrade.
- Category set to Backend User Interface
- Status changed from New to Accepted
- Target version deleted (
6.0.1)
will be fixed with #12769
- Status changed from Accepted to Closed
- Complexity changed from easy to hard
closed as duplicate of #12769 ... will be handled there.
- Status changed from Closed to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:fa3665c0db33f0cc788f908a6edb20f0553eadd3.
- Status changed from Resolved to Closed
Also available in: Atom
PDF