For example, on my Wikipedia User Page (w:zh:User:Wetitpig0), the clock seldom shows properly. Does anyone know why? Thanks!!
MediaWiki talk:Gadget-LocalLiveClock.js/Flow
Appearance
To fix the problem witrh "purge", some admin can copy the MediaWiki:Gadget-UTCLiveClock.js and replace rows n° 15, 16 and 17: From
var hh = now.getUTCHours(); var mm = now.getUTCMinutes(); var ss = now.getUTCSeconds();
To
var hh = now.getHours(); var mm = now.getMinutes(); var ss = now.getSeconds();
Thanks.
What problem?
https://phabricator.wikimedia.org/T135170 . Now the purge need a post request, UTCLiveClock use a post request, LocalLiveclock no.
Clock isn't releated to purging. You mean line 36 instead?
MediaWiki:Gadget-UTCLiveClock.js don't have the problem because use correctly the "post" request, so I think that the fastest solution is to copy "UTCLiveClock" and modify it to use local time. I'm not expert on javascript, but I made a test and this solution work correctly. If someone more expert have different solution I haven't problem
Done :)
There are no older topics