Maldiskusjon:Sommertid

Sommertid vises ikke

rediger

Debug:

{{Sommertid}}sommertid
({{ #timel: U}} - {{ #time: U}})/(60*60) → (1720643117 - 1720643117)/(60*60)
{{#expr: ({{ #timel: U}} - {{ #time: U}})/(60*60) }} → 0

Fra https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23timel

{{#time: Y-m-d }}2024-07-10
{{#timel: Y-m-d }}2024-07-10
{{#time: Y F d H:i:s}}2024 juli 10 20:25:17
{{#timel: Y F d H:i:s}}2024 juli 10 22:25:17

Sjekk ut U og Z

U Unix time. Seconds since January 1 1970 00:00:00 GMT.
Z Timezone offset in seconds.
{{#time: U}}1720643117
{{#timel: U}}1720643117
{{#time: Z}}0
{{#timel: Z}}7200

--> Z fungerer

--> Endre kode til

{{#expr: ({{ #timel: Z}} - {{ #time: Z}})/(60*60) }} → 2
Tilbake til siden «Sommertid».