[TYPO3-dev] time() vs. $GLOBALS['SIM_EXEC_TIME']

Dimitri Tarassenko mitka at mitka.us
Mon Mar 27 15:21:34 CEST 2006


Oliver,

On 3/27/06, Oliver Klee <typo3-german-01 at oliverklee.de> wrote:

> Is there any reason why it would make sense to use
> $GLOBALS['SIM_EXEC_TIME'] instead of just the (shorter) time()?

Yes, "SIM" in SIM_EXEC_TIME stands for "simulated". If you want your
_FE_ plugins to work correctly when the time is "simulated" in FE
editor, you need to use $GLOBALS['SIM_EXEC_TIME'] instead of time().

--
Dimitri Tarassenko


More information about the TYPO3-dev mailing list