Template talk:CURRENTMINUTE
From The Urban Dead Wiki
Jump to navigationJump to search
Darn. Was just trying to do the same thing and was stumbling over this one just as I was about to enter my own template. (And I had searched the template-space for "minute"...) -- Spiderzed▋ 01:04, 13 January 2011 (UTC)
- want me to delete yours? -- LEMON #1 01:06, 13 January 2011 (UTC)
- Keep both and enter it as a new template. Your version is non-zero padded which could be useful. -MHSstaff 02:02, 13 January 2011 (UTC)
- This template might be somewhat flawed. I made it specically for Gabba Gabba and at the time I was using another template I made {{LASTHOUR}}. I think I had to change it due to daylight savings. ~ 02:21, 13 January 2011 (UTC)
- Yeah, saw that you took a short-cut. I went the fool-proof way and entered every possible input from 00:00 to 23:59 manually (though with the help of Find&Replace to cut down work). -- Spiderzed▋ 02:27, 13 January 2011 (UTC)
- All I know is that the original code for this template worked using LASTHOUR instead of CURRENTHOUR and then sometime recently it broke. My thought when I fixed it was that CURRENTTIME did not account for daylight savings. So it is probably worth relacing code with your non-shortcutted version. And like MHS said a non zero padded might be helpful. ~ 02:33, 13 January 2011 (UTC)
- Yeah, saw that you took a short-cut. I went the fool-proof way and entered every possible input from 00:00 to 23:59 manually (though with the help of Find&Replace to cut down work). -- Spiderzed▋ 02:27, 13 January 2011 (UTC)
- This template might be somewhat flawed. I made it specically for Gabba Gabba and at the time I was using another template I made {{LASTHOUR}}. I think I had to change it due to daylight savings. ~ 02:21, 13 January 2011 (UTC)
Update
Per conversation above, template now uses {{LOCALTIME}} and {{LOCALHOUR}} as template calls to calculate the minute. ~ 03:49, 13 January 2011 (UTC)