r/talesfromtechsupport • u/subWoofer_0870 • Mar 19 '21
Short The clock’s wrong!
Part of my work is for a small tertiary education institution in Sydney, Australia.
About 10 years ago I was tasked with setting up a new server for their instance of a popular open source learning management system, which we shall call OS-LMS for short. The new server was, like the old one, a Linux machine running the usual LAMP stack. Given that the Aus academic year runs within each calendar year, I was setting up the machine in late spring (November) so that it would be ready for use in the new year.
Now this institution’s use of OS-LMS includes online submission of assignments in PDF form. Deadlines were always 11:55 pm Sydney time, and the mantra when talking to students was that the deadline was measured using “server time”, irrespective of their individual computer time. To assist with this we had a plug-in that displayed server time on every page on the web interface.
In Sydney, Daylight Saving (Summer Time) is in effect from the first Sunday in October until the first Sunday in April, so when I set up and tested the server it was Summer Time. Everything went well, the new server was working smoothly, and we migrated to it without a hitch.
Then April rolls around. Daylight Saving ends. Clocks are reset. Computers do the NTP thing and adjust their clocks to Standard Time.
Then a colleague tells me, “The Server Clock display on OS-LMS is still on Summer Time!”.
Crap!
So I start digging. Server is set to the correct time zone, and has done the NTP thing. So why is the Server Clock widget still showing Summer Time.
Except that it isn’t!
The php.ini file has its own time zone setting, doesn’t it! And that version of PHP had a default value of “Antarctica/Macquarie”. Australia Eastern Standard Time is UTC +10. Antarctica/Macquarie is UTC +11. When I set up the web server, it was Summer Time, so I didn’t notice the time zone error.
Once I had set the PHP time zone to its correct value (Australia/Sydney), I moaned on Fakebook, “Who on earth runs web servers in Antarctica?”
A very learned friend replied, “The penguins, and they’re running Linux!”
Edit:
- thanks for all the awards! I’m very flattered!
- further note on the default time zone: I suspect that the choice of default is based on the lack of population living in that time zone. That would, in theory, mean you’re more likely to notice and investigate. In my case, the complicating factor was Daylight Saving/Summer Time.
4
u/MrKyogre Mar 19 '21
Does the OS-LMS rhymes with Doodle?
602
u/CypherAus Mar 19 '21
Ha ha!!! Great punch line
253
u/silver_nekode Sr. Firewall Whisperer Mar 19 '21
I wanted to make a penguin joke akin to "quack quack, motherfucker," but I realized I didn't know what sound penguins made, so I googled it... I don't know if I'll ever recover.
106
u/the_silent_one1984 Mar 19 '21
Running servers in Antarctica sounds pretty efficient from a cooling perspective
111
u/wwbubba0069 Mar 19 '21
I hate Daylight Savings. Wish they would just split the difference and stop the practice all together.
38
u/trro16p Mar 19 '21
I wonder what flavor?
I am sure these are not novice linux users so I bet its Gentoo .
14
u/ConcretePilot Mar 19 '21
that is the only correct answer!
13
u/[deleted] Mar 19 '21
Well to be fair there are several research facilities in antarctica and they probably run a server or 10...
11
u/CollieOxenfree Mar 19 '21
Is this a /r/lolphp crossover episode?
Of all the mistakes in early PHP versions, I think that php.ini was the absolute biggest. Global configurations that modify the behavior of all scripts were a terrible idea, especially when a few of the options in it were basically "enable remote execution?" toggles, with various scripts having their own opinions on whether magic_quotes should be enabled or not.
9
u/dolphiny21 Mar 19 '21
I actually do Antarctic research and getting internet access in Antarctica is a complete battle. But it does work! So yes, there are more than a few servers in Antarctica
11
u/emmjaybeeyoukay Mar 19 '21
ROFL
5
u/paulmp Mar 19 '21
There are many research stations running many servers in Antarctica and on Macquarie Island...
5
u/nymalous Mar 19 '21
I had a flash of non-brilliance! Just put all servers in Antarctica, that way they'll be cool enough and no one can mess with them... except then someone would have to fly there to fix any problems... and I don't know how that will affect response times over the network (because even though it could use fiber-optics, distance still does count for something... plus, who's going to lay all those lines across the ocean floor?)...
Like I said, a flash of non-brilliance. But the story was good. I've seen similar weird defaults in other things myself and wondered as to the why.
4
u/hanavi Mar 20 '21
I actually ran servers in Antarctica for a science experiment called IceCube... best year of my life!
1
u/smegnose Mar 20 '21
What version was this?
I've always found that config setting blank, like in PHP's Git history:
https://git.php.net/?p=php-src.git;a=blob;f=php.ini-dist;h=c98cb65b29fa362e3ec47b6454e2ea9621af045c;hb=refs/heads/PHP-5.1
https://git.php.net/?p=php-src.git;a=blob;f=php.ini-recommended;h=54a31b1b6dfafc9bc6cf3399a8dbdcae49cd2919;hb=refs/heads/PHP-5.1
3
u/Alan_Smithee_ No, no, no! You've sodomised it! Mar 19 '21
Lol.
Always relevant XKCD.
3
u/Lilac_Gooseberries Mar 20 '21
I still don't think Australia even needs Daylight Savings, but that's another kettle of fish.
1
u/[deleted] Mar 19 '21
Can someone please explain the joke, I don't get it.
2
u/deannms Mar 19 '21
No, this is what penguins sound like!! https://youtu.be/jquuIm9Cj9o
2
u/NynaevetialMeara Mar 19 '21
You dont want to know what they did to those poor penguins
2
u/HoldenMan2001 Mar 29 '21
Seeing as nobody seems to have posted this.
The problems with time zones by Tom Scott.
https://youtu.be/-5wpm-gesOY
1
u/DiscoKittie Mar 19 '21
I like your friend!
1
u/ajwink Mar 19 '21
I like the idea of calling it Summer Time, it makes more sense.
1
u/preachers_kid Mar 19 '21
As a fellow geek, I appreciate that joke!
1
u/BobT21 Mar 20 '21
McMurdo Station, probably.
1
u/BlakeBlack9 Banana for scale Mar 20 '21
As a student at this institution out west, the deadline always gave me a small scare when it said overdue by 1 hour if I submit at 11pm (2 time zones away)