News for hackers. Stuff that matters.
Re:AWS us-east-1 down by kroltan on Tuesday June 13, 2023 @03:39PM (#36315794)
Semi-related: if you ever feel the need to report times to a global audience, not only make sure to always report the timezone (even if it is the same as the user's), but also use UTC offsets rather than timezone names.

Life is too short to remember what each timezone name means and converting to it, UTC offsets are much easier on the mental calculator.

Re:AWS us-east-1 down by colanderman on Tuesday June 13, 2023 @03:42PM (#36315839)
And even if the time is UTC, please indicate this.
Re:AWS us-east-1 down by TremendousJudge on Tuesday June 13, 2023 @03:43PM (#36315850)
It's also usually extremely US-centric. Nobody outside of North America has any idea what "PDT" or "Mountain Time" means.
Re:AWS us-east-1 down by tazjin on Tuesday June 13, 2023 @03:59PM (#36316066)
Everyone knows "Mountain Time". It is when you go to the mountains on vacation, and don't spend much time adhering to a strict schedule, instead taking leisurely strolls around the fields and promising vague things like "I'll try to be back for dinner".
Re:AWS us-east-1 down by jacobr1 on Tuesday June 13, 2023 @05:31PM (#36317736)
Closely related, yet distinct from, Island Time
Re:AWS us-east-1 down by NoZebra120vClip on Tuesday June 13, 2023 @04:09PM (#36316238)
3 years ago, when I started work for my current employer, I noticed in Slack that everyone was reckoning time in "Standard Time" year-round. Now imagine my chagrin because I live in Arizona, and "Mountain Standard Time" does not change for DST. Therefore, all my coworkers were citing nonsensical, nonexistent time zones and it was messing up my ability to convert back and forth.

Come to find out that this was some sort of entrenched, company-wide standard that was deliberately imposed. I made a lot of noise about this and appealed to some rather highly-placed directors, because I felt like it was wildly inaccurate and deceiving people; if you schedule a meeting in EDT but you say it's in EST, and we have employees all around the world, who's going to know? You're inviting off-by-one errors. Especially with me who lives permanently in MST.

3 years on, I've been unable to change this fundamentally; while a few people acknowledge DST, 90% of the company still adheres to this crazy false standard.

Re:AWS us-east-1 down by dyingkneepad on Tuesday June 13, 2023 @04:37PM (#36316813)
How does this generate off-by-one errors? I am also part of a company with employees in pretty much every timezone, but when they create a meeting the meeting invitation is programmed with the correct timezone so in my Calendar it always shows what time the meeting is going to be for me. I never even have to think what timezone the organizer is...
Re:AWS us-east-1 down by Travis_Pastrami on Tuesday June 13, 2023 @04:46PM (#36316968)
It's the same at my company. Teams and Zoom both automatically schedule meetings in every attendees' own time zone. Maybe that person's company still does phone meetings or something.
Re:AWS us-east-1 down by NoZebra120vClip on Tuesday June 13, 2023 @04:47PM (#36317008)
We don't use any automatic scheduling with Zoom or Google Calendar. Management doesn't send invites to those meetings, they just publish the link on Slack and we have to figure out how to get it into our calendars.

Trust me, at least once I missed a meeting because I was late by an hour due to time zone confusion.

Re:AWS us-east-1 down by jlick on Tuesday June 13, 2023 @06:03PM (#36318214)
The off-by-one error occurs when you announce an event in Standard time but really mean Daylight time, or vice versa. While those local to the time zone will often automatically correct this mistake either consciously on unconsciously, those in other time zones (especially where Daylight time isn't used or is on a different schedule) will tend to rely on time conversion tools which will take a literal interpretation of the scheduled time and result in the person being an hour early or an hour late.
Re:AWS us-east-1 down by dyingkneepad on Wednesday June 14, 2023 @11:11AM (#36327175)
The fact that you have to announce timezones is already an error. If I need to schedule a meeting I don't need to select timezones, they're already selected from the timezone I'm part of. There's never room for error by "picking" the wrong thing, since there's nothing to pick. And if my system is programmed with the wrong timezone, then every single meeting will be off-by-N and my calendar will show the wrong time as "now". It would be impossible to miss such an error.

I think your company needs better tools to handle meetings.

Re:AWS us-east-1 down by WirelessGigabit on Tuesday June 13, 2023 @04:47PM (#36317009)
I just had someone asking me if I'm available at 5pm EST.

Also, your clock can get confused driving North from PHX to Zion National Park.

In summer you start in Mountain Standard Time, drive into the Navajo Nation which does observe Mountain Daylight Time, containing through the Hopi Reservation, which is Mountain Standard Time. Then you end up back in Navajo Nation with Mountain Daylight Time. You keep on driving towards Page which is in Mountain Standard Time. However, when you cross the state-border of AZ/UT you're back in Mountain Daylight Time.

My clock threw a segmentation fault.

Re:AWS us-east-1 down by cj on Tuesday June 13, 2023 @05:04PM (#36317316)
This is why I always write ET instead of EDT/EST.

I encourage everyone at my company to do the same. Easy way to eliminate errors while typing 1 less key stroke!

Re:AWS us-east-1 down by randallsquared on Tuesday June 13, 2023 @06:46PM (#36318690)
This is the way.
Re:AWS us-east-1 down by NoZebra120vClip on Tuesday June 13, 2023 @07:51PM (#36319324)
However, if DST is in effect and you live in AZ, you must write "MST" in order to be understood.
Re:AWS us-east-1 down by testplzignore on Tuesday June 13, 2023 @05:04PM (#36317319)
One of the saddest pieces of code I ever wrote was to treat "MST" as always meaning America/Denver. I'm sorry.
Re:AWS us-east-1 down by mynegation on Tuesday June 13, 2023 @07:58PM (#36319384)
I passively aggressively ask everyone during the daylight time who mentions specific time in EST or BST, if they meant EDT or BDT.

I literally had cases when I was woken up in the middle of the night for production issue because some people are too sloppy about this kind of thing.

Re:AWS us-east-1 down by donalhunt on Tuesday June 13, 2023 @03:50PM (#36315942)
I mostly struggle with Irish Standard Time (used for DST in Ireland) and Indian Standard Time which have the same acronym. :(

Thankfully, I learnt a long time ago to use ISO 8601 and UTC for dates and times. I still revert to PST/PDT if my audience is primarily left coast based.

Re:AWS us-east-1 down by macksd on Tuesday June 13, 2023 @03:54PM (#36315995)
And I can't say it's ever actually caused a problem, but something about Indian Standard Time being a half-hour offset from UTC has always bothered me so much... But now we're fully off-topic.
Re:AWS us-east-1 down by mynegation on Tuesday June 13, 2023 @08:04PM (#36319424)
Oh, hold on to something, while I tell you about Chatham Islands.
Re:AWS us-east-1 down by WirelessGigabit on Tuesday June 13, 2023 @04:49PM (#36317043)
Left coast? That's a term I've never heard of.
Re:AWS us-east-1 down by unmole on Tuesday June 13, 2023 @06:32PM (#36318538)
> I mostly struggle with Irish Standard Time (used for DST in Ireland) and Indian Standard Time which have the same acronym. :(

Heh. After the first few instance of confusion, we switched to saying Bangalore time and Dublin time.

Re:AWS us-east-1 down by jjtheblunt on Tuesday June 13, 2023 @04:06PM (#36316195)
And if you've been American since birth, and live in Arizona, one might still not know, since PDT and Mountain Time alternate covering Arizona seasonally. ("Ask me how i know.")
Re:AWS us-east-1 down by Rebelgecko on Tuesday June 13, 2023 @04:30PM (#36316645)
It can also varies within Arizona... one of the most confusing times in my life was driving from California through the Navajo Reservation in AZ on my way to an appointment. Was my cell phone giving me the local time on the reservation? Was it connecting to a cell tower just outside the reservation, giving me DST-less Arizona time? Or a tower slightly further away in Utah (DST?) Or was it giving me the time on the Hopi reservation, which is an enclave totally surrounded by the Navajo Reservation which uses AZ time?
Re:AWS us-east-1 down by lkbm on Tuesday June 13, 2023 @03:57PM (#36316038)
Probably if you're using AWS, you do, but it would be much more convenient if they just used UTC by default with an option to localize.
Re:AWS us-east-1 down by jen20 on Tuesday June 13, 2023 @03:48PM (#36315912)
Not to mention they conflict. CST can be "Central Standard Time", "China Standard Time" or "Cuba Standard Time" and so forth...
Re:AWS us-east-1 down by inopinatus on Tuesday June 13, 2023 @05:21PM (#36317568)
Unnecessary reflux obtained during US-Australian collaboration from insufficiently specific references to "east coast time".
Re:AWS us-east-1 down by sk0g on Tuesday June 13, 2023 @07:16PM (#36318990)
Even in Australia, AEST has a DST flavour and a non-DST one. Queensland does not observe DST while the other states do. You can drive around a roundabout at the border and switch timezones for fun. Or go down there to celebrate the new year twice.

Or go from rabbits being OK to some 5 figure fine if you're caught with one :)

Re:AWS us-east-1 down by inopinatus on Tuesday June 13, 2023 @07:41PM (#36319243)
If my understanding of local pejoratives is correct, it seems traditional to sledge QLD for being one hour and twenty years behind
Re:AWS us-east-1 down by jlawer on Tuesday June 13, 2023 @11:26PM (#36321068)
I believe its traditional to reply that NSW was 8 points behind in the only yard stick those north of the border care about.

https://en.wikipedia.org/wiki/State_of_Origin_series

Re:AWS us-east-1 down by dylan604 on Tuesday June 13, 2023 @03:43PM (#36315847)
just report it in epoch seconds
Re:AWS us-east-1 down by dramm on Tuesday June 13, 2023 @04:34PM (#36316741)
Or stardate ¯\_(ツ)_/¯
Re:AWS us-east-1 down by queuebert on Tuesday June 13, 2023 @04:16PM (#36316372)
Julian Date
Re:AWS us-east-1 down by conductr on Tuesday June 13, 2023 @03:49PM (#36315937)
that's based on UTC, so just use UTC?
Re:AWS us-east-1 down by dylan604 on Tuesday June 13, 2023 @04:05PM (#36316169)
based on is not the same thing though is it?

UTC is human readable even if it is not calculated correctly. yes, i'm saying that if you can read epoch seconds, you're not human. 1970-01-01 00:00:00 is always a give away that something is a foot

Re:AWS us-east-1 down by conductr on Tuesday June 13, 2023 @05:51PM (#36318046)
"anchored on" then? I might be wrong but we're both talking about showing time as distance from the same starting point are we not? One's just more human readable so that's why I say why not just use that? Seconds since can be miscalculated too, especially if current time isn't known/reliable
Re:AWS us-east-1 down by account42 on Wednesday June 14, 2023 @08:10AM (#36324652)
I wish it was based on TAI though.
Re:AWS us-east-1 down by drivers99 on Tuesday June 13, 2023 @05:18PM (#36317513)
Or Swatch Internet time (.beat time). No time zones, it's always UTC+1, with the day divided into 1000 beats.
Re:AWS us-east-1 down by inopinatus on Tuesday June 13, 2023 @05:19PM (#36317535)
I will pass you the address of a struct timespec, please fill it in.
Re:AWS us-east-1 down by yen223 on Tuesday June 13, 2023 @07:08PM (#36318905)
Just make sure not to confuse it with epoch milliseconds!
Re:AWS us-east-1 down by dathinab on Tuesday June 13, 2023 @07:09PM (#36318919)
better:

time encoded as a float of trecenti-seconds since year -8435 of the Georgian Calendar

why?

'caus it hurt to even just think about implementing that anywhere

Re:AWS us-east-1 down by account42 on Wednesday June 14, 2023 @08:08AM (#36324631)
Ignoring leap seconds?
Re:AWS us-east-1 down by throw0101c on Tuesday June 13, 2023 @03:47PM (#36315902)
Basically just use the output of `date -u`.
Re:AWS us-east-1 down by yawaramin on Tuesday June 13, 2023 @04:30PM (#36316641)
Use `date -u -Iseconds`, please ;-)
Re:AWS us-east-1 down by drivers99 on Tuesday June 13, 2023 @05:15PM (#36317463)

    date: illegal option -- I
    usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
                [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Re:AWS us-east-1 down by yawaramin on Tuesday June 13, 2023 @05:46PM (#36317954)
Re:AWS us-east-1 down by mynegation on Tuesday June 13, 2023 @07:52PM (#36319332)
Let me guess, you are on a Mac.
Re:AWS us-east-1 down by yawaramin on Tuesday June 13, 2023 @09:12PM (#36319993)
Probably on an older Mac or FreeBSD. On my macOS 12.6, `man date` says:

    The -I flag was added in FreeBSD 12.0.
Re:AWS us-east-1 down by drivers99 on Wednesday June 14, 2023 @08:40PM (#36334923)
* * *
Re:AWS us-east-1 down by isbvhodnvemrwvn on Tuesday June 13, 2023 @04:20PM (#36316448)
It's locale-specific, which is not great.
Re:AWS us-east-1 down by doubleasea on Tuesday June 13, 2023 @08:54PM (#36319828)
Re:AWS us-east-1 down by perlgeek on Tuesday June 13, 2023 @04:11PM (#36316273)
It's also not too complicated to add a few lines of javascript that show the datet/time in the user's local time zone (via Date.getTimezoneOffset) as well.
Re:AWS us-east-1 down by bob1029 on Tuesday June 13, 2023 @04:19PM (#36316437)
We do this in all of our web apps. It's pretty simple and dramatically improves UX when you have customers that are doing a lot of scheduling.

Showing both at the same time is peak design for me personally. UTC compares for relative sequencing, local time for "was that before or after I ate lunch".

Re:AWS us-east-1 down by blibble on Tuesday June 13, 2023 @05:08PM (#36317374)
given how long it took AWS to add support for Ed25519 ssh keys (literally just fix the validation regex), I wouldn't hold your breath
Re:AWS us-east-1 down by andrelaszlo on Tuesday June 13, 2023 @05:12PM (#36317435)
As long as you still show which tz it is! :)

GCP's various products have gotten a lot better at this lately, but just a few months ago I could click around between various dashboards and explorers, some showing the time in UTC, some in your browser's tz, and some in your profile's tz (if I recall correctly). Some of them were showing the tz, and for some you had to guess. Sometimes you had multiple tzs on the same page. Sometimes the date picker for a control was in one tz and the widget it was controlling in another (leading to quite a lot of confusion).

The worst offence IMO was not showing the tz at all. Especially given the overall lack of consistency.

Re:AWS us-east-1 down by bawolff on Tuesday June 13, 2023 @06:52PM (#36318745)
Honestly this is the worst when there is no timezone marker and some times are in browser time and others arent
Re:AWS us-east-1 down by bombcar on Tuesday June 13, 2023 @06:55PM (#36318779)
Or when logged times in the past change depending on today’s daylight savings setting.
Re:AWS us-east-1 down by dathinab on Tuesday June 13, 2023 @07:03PM (#36318859)
still show the timezone it's displayed in, users aren't always fully aware of which time zone their browser is believing they are in (sounds stupid at first but imagine you just traveled somewhere and are temporary used to that time zone but e.g. your laptop is fixed set to your home time zone, or maybe it's not and you just thought it is, or maybe you are just a bit confused because you switched time zones 4 times the last 24 hours etc.)
Re:AWS us-east-1 down by doubleasea on Tuesday June 13, 2023 @08:52PM (#36319815)
Re:AWS us-east-1 down by benced on Tuesday June 13, 2023 @05:45PM (#36317944)
Also report it using IATA time zones (America/Los_Angeles) at least in addition (I'd argue instead of) those abbreviations which are completely unstandardized and not unique.
Re:AWS us-east-1 down by mananaysiempre on Tuesday June 13, 2023 @06:48PM (#36318703)
If the world were fair, we’d be calling these Eggert time zones, as Paul Eggert (longtime tzdata maintainer until the copyright trolls came) invented them; but it isn’t.
Re:AWS us-east-1 down by jxf on Tuesday June 13, 2023 @07:47PM (#36319294)
Is there context on this? I'd be interested in the history of what happened and why Eggert is no longer involved.
Re:AWS us-east-1 down by rovr138 on Thursday June 15, 2023 @02:09PM (#36344396)
Re:AWS us-east-1 down by JJMcJ on Tuesday June 13, 2023 @05:46PM (#36317956)
Nothing worse than people who say "9 AM my time" I suppose it's OK if it's Pacific vs Mountain but even there Arizona doesn't observe Daylight, and parts of Eastern Oregon are Mountain, not Pacific.

Never mind dealing with India, Australia, etc etc.

OK to use local time in your statement, just say what that time is.

Re:AWS us-east-1 down by yreg on Tuesday June 13, 2023 @05:57PM (#36318126)
And if it's on a forum debating an event that's about to happen soon, I find the following extremely convenient:

- the keynote will start when this post is 5 hours old

- the rocket launch is scheduled to when this comment is 30 hours old

Re:AWS us-east-1 down by tedmiston on Wednesday June 14, 2023 @12:43PM (#36328642)
> Life is too short to remember what each timezone name means and converting to it, UTC offsets are much easier on the mental calculator.

Many people also get the timezone names completely wrong. I've had multiple scheduling email exchanges where someone says X pm EST not realizing that at the time it's currently EDT and that EST ≠ EDT.

And yet, for some reason, the two-letter abbreviations (e.g., ET) that are technically correct year-round, never seem to have caught on in the wild.

I've given up on the abbreviations and just say "Eastern" now to avoid confusion.

Re:AWS us-east-1 down by kroltan on Thursday June 15, 2023 @11:16AM (#36341719)
Fair enough, but please only use that with strictly USA audiences. (And remember that public information likely will not be targeted to strictly USA audiences)

Names don't carry any information intrinsically, they are only a reference to the actual information, and the offset information is pretty short, so why not just provide the information directly?

"X pm GMT-3" only requires the reader to know their own timezone offset, unlike "X pm Brasilia time" (which is inaccurately known as São Paulo time outside Brazil) or "X pm BRT", which requires the reader to both know what that timezone means, and their own (or, more likely, requires them to look the conversion up).

(And if the difference between GMT and UTC is significant, I hope it didn't take my comment to convince you about using offsets :> )