Wikinews:Water cooler/technical/archives/2019/March

From Wikinews, the free news source you can write!
Jump to navigation Jump to search


displaying current time on a user page

I would like to display my current time on my personal user page on the wiki but not sure what template or what key word would be the best for this task. I think it would be great to show this information to other contributors. Gryllida (talk) 03:31, 1 March 2019 (UTC)

@Gryllida: You can use magic words: mw:Help:Magic_words. Leaderboard (talk) 22:16, 24 March 2019 (UTC)
Thanks! Do you have an example which uses the non-default timezone, please? Gryllida (talk) 22:52, 24 March 2019 (UTC)
@Gryllida: You can manipulate the time using mw:Help:Extension:ParserFunctions#.23time. So one option would be to find the GMT and then add the time zone offset. Leaderboard (talk) 23:07, 24 March 2019 (UTC)
Thank you for the advice, Leaderboard. 4:31 AM -- this appears to work great. I have now added it to my user page. Gryllida (talk) 23:26, 24 March 2019 (UTC)
Btw, I have in mind to add to the dialog tools, at some point, a facility that provides for some sort of real-time clock update; should be designed so it can simply and effectively support a high-quality time-zone-comparison facility. That would only be available, though, when viewing a page through dialog action. --Pi zero (talk) 23:48, 24 March 2019 (UTC)