Bug #55093
closedSimulate time in TYPO3 admin panel broken due to Js TBE_EDITOR=="undefined"
100%
Description
Problem description¶
It is not possible to simulate a different date/time for the Frontend via the Admin-Panel.
Regardless of the format/string used to input the date it will be cleared after hitting the "Update"-Button and $GLOBALS['SIM_ACCESS_TIME'] will not be set.
Expected behaviour¶
The field used to behave like all date/time fields in TYPO3. You can enter 'n', 'd' or 't' to get current date or even add simple calculations like 'd+13' or 'd-10'. The JS will take care of updating the hidden field and transform the value into a unix timestamp and display a proper formatted date string (M:i d.m.Y).
You can also set a date in the format M:i d.m.Y
Problem Analysis¶
There is a fatal error in jsfunc_evalfield.js in a default installation without fe-editing enabled.
Uncaught ReferenceError: TBE_EDITOR is not defined)
Probably this problem disappears with Fe-Editing enabled or other additional extensions.