Project

General

Profile

Actions

Bug #69335

closed

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

Added by Viktor Livakivskyi over 8 years ago. Updated over 6 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

Also available in: Atom PDF