Project

General

Profile

Actions

Bug #99627

closed

Context:class don't detect timezone correctly

Added by Dieter Porth about 1 year ago. Updated 11 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-01-19
Due date:
% Done:

0%

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

Description

I Define in the LocalConfiguration.php my timezone.
If I want to use the current timezone, I have to use the following code. The commented code will give back the timezone 'UTC'.

$context = GeneralUtility::makeInstance(Context::class);
$nowStamp = $context->getPropertyFromAspect('date','timestamp');
// $timeZone = $context->getPropertyFromAspect('date','timezone'); // TYPO3 bug
$timeZone = date_default_timezone_get();

Contains the Context:classs a bug?

P.S. I got the idea to use `date_default_timezone_get()` from the f:format.date-viewhelper, which didn`t use the context-class for detecting the timezone. It use the Context:class only for the detection of the current timestamp.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #103588: PreviewSimulator for time restricted pagesResolved2024-04-10

Actions
Is duplicate of TYPO3 Core - Bug #98045: DateAspect->getTimezone (almost) never returns the correct valueResolvedAndreas Wolf2022-07-28

Actions
Actions #1

Updated by Jan Delius about 1 year ago

  • Is duplicate of Bug #98045: DateAspect->getTimezone (almost) never returns the correct value added
Actions #2

Updated by Gerrit Code Review 3 months ago

  • Status changed from New to Under Review

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #3

Updated by Gerrit Code Review about 1 month ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #4

Updated by Gerrit Code Review 20 days ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #5

Updated by Gerrit Code Review 20 days ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #6

Updated by Gerrit Code Review 20 days ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #7

Updated by Gerrit Code Review 19 days ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #8

Updated by Gerrit Code Review 16 days ago

Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #9

Updated by Gerrit Code Review 16 days ago

Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #10

Updated by Gerrit Code Review 13 days ago

Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #11

Updated by Gerrit Code Review 13 days ago

Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #12

Updated by Gerrit Code Review 13 days ago

Patch set 13 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #13

Updated by Gerrit Code Review 13 days ago

Patch set 14 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #14

Updated by Gerrit Code Review 12 days ago

Patch set 15 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81915

Actions #15

Updated by Gerrit Code Review 11 days ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83682

Actions #16

Updated by Gerrit Code Review 11 days ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/83684

Actions #17

Updated by Markus Klein 11 days ago

  • Status changed from Under Review to Resolved
Actions #18

Updated by Georg Ringer 7 days ago

  • Related to Bug #103588: PreviewSimulator for time restricted pages added
Actions

Also available in: Atom PDF