Project

General

Profile

Actions

Task #56651

closed

Move date/time utility methods to own class

Added by Bernhard Kraft about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2014-03-07
Due date:
% Done:

50%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

There are date/datetime/time utility methods spread all around the core. Some are implemented in BackendUtility, others in GeneralUtility and maybe even at other locations.

Those methods should get moved to the new "DateTimeUtility" class introduced by patch/review:
forge.typo3.org/issues/56200
https://review.typo3.org/#/c/28157/1,publish

Additionally there are bugfix patches/reviews for fixing leap year issues of the "calcAge" method:
http://forge.typo3.org/issues/20016
https://review.typo3.org/#/c/24635/
Those would have to get rebased


Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #23056: Rename t3lib_BEfunc::time and introduce new functionClosed2010-06-30

Actions
Follows TYPO3 Core - Task #56200: Clean up duplicated code in calcAgeClosed2014-02-21

Actions
Actions #1

Updated by Gerrit Code Review about 10 years ago

  • Status changed from New 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 https://review.typo3.org/28158

Actions #2

Updated by Gerrit Code Review about 10 years ago

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

Actions #3

Updated by Wouter Wolters over 9 years ago

  • Status changed from Under Review to Closed

Duplicate ticket of #20016

Actions

Also available in: Atom PDF