Maldiskusjon:Sommertid
Sommertid vises ikke[rediger kilde]
Debug:
{{Sommertid}}
→ sommertid({{ #timel: U}} - {{ #time: U}})/(60*60)
→ (1714849004 - 1714849004)/(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-05-04{{#timel: Y-m-d }}
→ 2024-05-04{{#time: Y F d H:i:s}}
→ 2024 mai 04 18:56:44{{#timel: Y F d H:i:s}}
→ 2024 mai 04 20:56:44
Sjekk ut U og Z
- U Unix time. Seconds since January 1 1970 00:00:00 GMT.
- Z Timezone offset in seconds.
{{#time: U}}
→ 1714849004{{#timel: U}}
→ 1714849004{{#time: Z}}
→ 0{{#timel: Z}}
→ 7200
--> Z fungerer
--> Endre kode til
{{#expr: ({{ #timel: Z}} - {{ #time: Z}})/(60*60) }}
→ 2