Project

General

Profile

Actions

Bug #92736

closed

DateTimeAspect falsely returns timestamp as string

Added by Oliver Bartsch over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Category:
Miscellaneous
Target version:
-
Start date:
2020-10-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

According to docs https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/GlobalValues/GlobalVariables/Index.html it's discouraged to use $GLOBALS['EXEC_TIME'] and alike for retrieving the current timestamp. The DateTimeAspect should be used instead.

However, calling DateTimeAspect->get('timestamp'); returns the timestamp as string while $GLOBALS['EXEC_TIME'] returns it as integer.

Actions

Also available in: Atom PDF