[TYPO3] Date Calculations (add 7 hours to value in register:SYS_LASTCHANGED)
Steffen Müller
typo3 at t3node.com
Wed Jul 9 19:51:02 CEST 2008
Hi.
Stefan Amstein wrote:
>
> can anybody tell me how to add 7 hours to the date from
> register:SYS_LASTCHANGED
>
I don't know an easy & pure Typoscript solution.
Maybe you can use the userfunc of the value modifications ":="-operator
http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.1.0/view/1/2/
use the hook to call a userfunc:
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tsparser.php']['preParseFunc'][$tsFunc]
I am sorry, but I cannot give you an example how to do that exactly.
Take it as a starting point.
But maybe there are smarter solutions?
--
cheers,
Steffen
More information about the TYPO3-english
mailing list