Project

General

Profile

Actions

Bug #43363

closed

Syslog day header uses incorrect timestamp (with locale offset)

Added by Egbert van der Hout over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2012-11-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
hard
Is Regression:
Sprint Focus:

Description

Steps to reproduce

  1. Clear cache or do something else which creates a log line in syslog
  2. 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()));


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #45074: Wrong dates and datetime in admin logClosed2013-02-01

Actions
Actions #1

Updated by Ernesto Baschny over 11 years ago

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.

Actions #2

Updated by Ernesto Baschny over 11 years ago

  • Category set to Backend User Interface
  • Status changed from New to Accepted
  • Target version deleted (6.0.1)
Actions #4

Updated by Marc Bastian Heinrichs about 11 years ago

will be fixed with #12769

Actions #5

Updated by Christian Kuhn about 11 years ago

  • Status changed from Accepted to Closed
  • Complexity changed from easy to hard

closed as duplicate of #12769 ... will be handled there.

Actions #6

Updated by Gerrit Code Review about 11 years ago

  • Status changed from Closed to Under Review

Patch set 1 for branch fluid_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/18086

Actions #7

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch fluid_4-7 has been pushed to the review server.
It is available at https://review.typo3.org/18089

Actions #8

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch fluid_1-3 has been pushed to the review server.
It is available at https://review.typo3.org/18090

Actions #9

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch fluid_1-4 has been pushed to the review server.
It is available at https://review.typo3.org/18091

Actions #10

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch fluid_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/18086

Actions #11

Updated by Anja Leichsenring about 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:fa3665c0db33f0cc788f908a6edb20f0553eadd3.

Actions #12

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF