Forum:Timer in different timezone

I wanted to create clock on my wiki, according to the code that can be found here: w:c:fairlyoddparents:MediaWiki:Common.js/displayTimer.js. However, it will create clock that displays time in UTC. As my wiki is Polish one, I need UTC + 1. What I must change in that code in order to change the timezone for UTC + 1 (and is this possible)? Regards, Final Cannon 14:12, July 23, 2011 (UTC)


 * I think you can add  after   and it should use UTC + 1 instead of base UTC. The last part of the function (after  ) detects whether   is set and uses it as an offset from UTC, if it is set (assuming I'm reading the JS correctly). -- Fandyllic  (talk &middot; contr) 23 Jul 2011 2:23 PM Pacific

I'm not sure if it helps but I believe that when you make the clock, it sets to your personal time, the one in your preferences, but once you make it you can't change it again in your preferences, you have to disable the clock and then change it your preferences and then make the clock once more. --TheBen10Mazter (Talk -Blog -Contribs) 14:54, July 23, 2011 (UTC)

I will never understand why people want to put clocks on pages. Do people think that others don't have clocks at home? No clocks on their computers? 16:46, July 23, 2011 (UTC)


 * A utc clock on a wiki can be very useful. I use one so I know the time in UTC and when voting deadlines are up on my wiki.--

I agree with Godisme. --TheBen10Mazter (Talk -Blog -Contribs) 23:05, July 23, 2011 (UTC)


 * Your the best, Fandyllic! It works! Final Cannon 23:13, July 23, 2011 (UTC)


 * How long it can take for Common.js to purge? It's visible to me when logged-in, it also works in MonoBook already. I purged the cache many times and it's still not visible in Oasis while logged-out. Final Cannon 22:17, July 24, 2011 (UTC)


 * Common.js only affects logged in users I believe.--


 * Godisme is correct. I just went to my home wiki, where we have a clock atop the RandomPages/WikiActivity buttons, and when I logged off, the clock disappeared. When I logged back in, it re-appeared. Thanks! — Spike Toronto  22:22, July 24, 2011 (UTC)

reset indent However, on w:c:fairlyoddparents when I found out the code for the timer, it appears even when I'm logged-out. Besides, the timer is visible on my wiki in MonoBook. I also managed to make it appear a few times for logged-out view by purging the js pages over and over. I think it's not the case. Final Cannon 23:27, July 24, 2011 (UTC)