Mar 30, 2016 12:00
viataheerah,
computers,
hacking,
rape,
economy,
scotland,
rapeculture,
law,
minimumwage,
acting,
movies,
inequality,
economics,
games,
awesome,
austerity,
military,
batman,
links,
healthcare,
airplanes,
superman,
government,
uk,
consent,
funny,
wages,
porn,
relationships,
tax,
regulation,
vaccination,
review
Leave a comment
(I'll try and fix that for the next time the clocks change)
Reply
Reply
Hopefully, by the time the clocks go back again I'll have fixed that.
Reply
The script wants to post at the same UTC time all year round, but this time you've tweaked it manually so that for people in the UK*, it's staying at the same local time? And in 6 months' time you hope to have it adjust itself every times the clocks change?
* And everywhere else where the DST change happens on the same day. Which might not be everywhere. For a time when I was a kid there was a 2 week period in the autumn when France and the UK were on the same time, because they changed DST two weeks apart.
Reply
But I adjusted the next-posting-time manually to be noon.
And I hope that in 6 months time, when the clocks change, I'll have updated the code so that it will do the conversion to local time, add one day, and then convert back to UTC.
Reply
In PHP that would be so easy. There's actually a function which takes a parameter of the form "+ 1 day" and does the Right Thing (TM).
Reply
I just have to read in the user's preference for their timezone, do the conversion from UTC to the timezone, add a day, convert back to UTC, and save it.
Probably about five lines of code.
Reply
Leave a comment