Bug #27919
closedPreview in Admin Panel does not handle Timezone correctly
0%
Description
If you have enabled a more finer timing (starttime/endtime with the possibility to enter minutes instead of only days) of content elements you are not able to preview this. Here in Germany there will be always a time difference of 2 hours.
For example: An element should appear at 10:00, you will see ist also when you enter 09:00 in the admin panel. Only on times < 08:00 it will be hidden.
Updated by Oliver Hader about 13 years ago
- Target version changed from 4.5.4 to 4.5.6
Updated by Chris topher almost 13 years ago
- Target version changed from 4.5.6 to 4.5.8
Updated by Ernesto Baschny over 12 years ago
- Target version changed from 4.5.8 to 4.5.12
Updated by Christoph Moeller almost 12 years ago
Is there any action going on in t3lib/jsfunc.evalfield.js? Does not seem so, according to the git commit log in the 6.x branch (at least not concerning the date logic, just CGL etc.). We had a look at it and most of it is Kasper-Code from 2001 - no offense, JS just wasn't ready, back then ;-)
We have a "hotfix" available that fixes at least the time offset when previewing elements/pages that have a date+time (instead of just date) start date set. It's clearly a dirty hack (parses, corrects and replaces the given date string to get the desired result), but it solves the problem for us for now. It's available at https://gist.github.com/b54bd38fe7bb6608490a. Add the Javascript snippet to the frontend output if a BE user is logged in (by a TS condition or whatever) and you should be all set.
We do not have the resources/budget to go over t3lib/jsfunc.evalfield.js - but this piece of code definitely needs some love and care or better: a rewrite. Any takers here? We might add in some sponsoring in terms of money or knowhow/explanation/help.
Updated by Nikola Stojiljković about 10 years ago
- Target version changed from 4.5.12 to 7.0
13 years later, the code still looks the same. I will try to refactor it since we need to add support for timezone rendering in the datetime field.
Updated by Nikola Stojiljković about 10 years ago
Christoph Moeller wrote:
Is there any action going on in t3lib/jsfunc.evalfield.js? Does not seem so, according to the git commit log in the 6.x branch (at least not concerning the date logic, just CGL etc.). We had a look at it and most of it is Kasper-Code from 2001 - no offense, JS just wasn't ready, back then ;-)
Please take a look at https://review.typo3.org/#/c/32360/.
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from 7.0 to 7.1 (Cleanup)
Updated by Benni Mack over 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.2 (Frontend)
- Is Regression set to No
Updated by Benni Mack over 9 years ago
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Updated by Susanne Moog about 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Mathias Schreiber almost 9 years ago
- Target version deleted (
7 LTS) - Tags set to Datetime
Updated by Riccardo De Contardi over 7 years ago
- Related to Bug #66793: "simulate time" in admin-panel does not respect timezone added
Updated by Riccardo De Contardi over 7 years ago
- Status changed from New to Closed
I close this issue in favor of #66793 please continue the discussion there. Thank you.
If you think that this is the wrong decision, then please reopen the issue or open a new issue with a reference to this one.