Project

General

Profile

Actions

Bug #69335

closed

DateViewHelper treats date="now" incorrectly, if 'base' is not set

Added by Viktor Livakivskyi about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Fluid
Target version:
Start date:
2015-08-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Hi,

I've upgraded TYPO3 from 7.3.1 to 7.4 and output of year in footer copyright became incorrect.

I'm doing it with such a VH call:

{f:format.date(date: 'now', format : 'Y')}

With 7.3.1 it outputs "2015"
With 7.4. - output always different and may be, e.g. "8034"

The problem in introduced 'base' parameter #68022

Now I'm forced to provide it:

{f:format.date(date: 'now', format : 'Y', base: 'now')}

Is it expected usage or it is an issue?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #68022: Add base date to DateViewHelperClosedMarkus Klein2015-07-09

Actions
Actions #1

Updated by Markus Klein about 9 years ago

  • Status changed from New to Accepted
  • Assignee set to Markus Klein
  • Priority changed from Could have to Must have
  • Target version set to 7.5
  • Complexity set to easy
  • Sprint Focus set to Stabilization Sprint

Thanks for the report, that is indeed a bug.

Actions #2

Updated by Gerrit Code Review about 9 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42885

Actions #3

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42885

Actions #4

Updated by Markus Klein about 9 years ago

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

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF