I actually tried that right after the screenshot. It responded with something along the lines of “Im sorry, I can’t share information that would break Amazon’s tos”
To be fair, returning the actual timezone (as defined by tz.db) is useful if you don’t just want the current time since you’ll be able to take DST into account. Not sure how Vienna is -8 though, it should be +1 (or 2 depending on DST).
Your comment is a full throated endorsement of just working in UTC up until the presentation layer. Whether you intended that or not is another question.
To be clear I believe it makes sense to do a lot of things in UTC, but future events should almost always be local time + timezone to make scheduling predictable and consistent to humans.
I don’t see how your way is any more predictable or consistent than using UTC. What even is “local time”? Are you assuming they haven’t changed timezone since they created the data? Say…DST happened, or they drove over a border…?
Storing and manipulating in UTC is the most predictable and consistent because it is universal and unchanging. You only need to worry about “local time” at the point of displaying it.
We have slackbots that post, for instance, who has vecation every day. Because it is configured to post this using UTC, the time of day this is posted changes twice a year.
I might have a recurring appointment for lunch in my calendar every day at noon. Now DST happened, so I have to wait until one to eat. That is inconsistent to me.
Timezones change. If I have to go to the theatre on half a year at 18:00, I don’t want to be there at 19:00 because someone decided local time would be better if we moved it an hour. The show time certainly won’t be moved.
What is local time? It’s spacetime. When did it happen and if relevant (eg. a photo) what was the offset (because I would like to know the time of day)? When will it happen, and where? Online meetings across timezones are tricky, of course, but excluding the timezone won’t improve that.
Notice the common problem here? DST. Get rid of it and you get rid of the inconsistency that happens parts of the year, and you reduce fatality rates that resulted from moving time twice a year.
This is absolutely fundamentally wrong. What you’ve described is what Nodatime calls an Instant, and it’s a very important data class, but there are valid reasons to use other classes.
A LocalDateTime cares about the date and time locally. An event scheduled for 8am every Monday might use this. It would update accordingly if you move locations to a new locale.
A ZonedDateTime can almost be directly translated into an Instant, except that one time zone might change. If you go into or out of daylight saving time, or your region decides to change its time offset. Oslo time is still Oslo time. You use this if your event occurs at a specific time in a specific location.
An OffsetDateTime is like a ZonedDateTime, but instead of being tied to a specific time zone (e.g. “Oslo time”) it’s tied to a specific UTC offset (e.g. UTC+1).
You don’t have to use Nodatime, but you should at least think deeply about what your time objects actually represent and what is the best way to represent them.
It might also work with some right-wing trolls. I’ve noticed certain trolls in the past only monitored certain keywords in my posts on Twitter, nothing more. They just gave you a bogstandard rebuttal of XY if you included that word in your post, regardless of context.
My old reddit account was monitored and everytime I used the word snowflake I would get bot slammed. I complained but nothing ever happened. I really made a snowflake mad one day.
Took my freshly re-cobbled together computer to local computer guy after an upgrade with hand-me-down parts. He asked what was wrong and I said there was an alarm for the CPU fan, and that I’d torn the case open and hooked a second fan into the CPU fan connection and it also didn’t work, and the I plugged the CPU fan into a different connection and got it working, so by elimination I was pretty sure the fans were good and the connection in the motherboard was bad.
He seemed mildly amused/impressed by my spiel. I’m not really a computer person, but swapping out parts to narrow down the source of the problem seemed logically basic.
I ended up chilling with him while he worked on things. He found WinZip on my desktop and let out a “whoa retro.” which hurt me deeply.
That’s exactly what it’s for. If you use it commercially without paying winrar will come for you, but as a personal use case it’s just ad ware. You get the product, and deal with their ad every boot. You could pay for it, but it probably the least annoying ad on the internet right now.
I remember hearing that they have gone for companies before, but that was a while ago and, ya know, just something I read that may or may not be particularly accurate.
I tend to just check uptime before asking this question.
If I see the machine has been up for weeks and they tell me they rebooted it, I know i’m dealing with someone who doesn’t know that pressing the power button on the monitor doesn’t turn the computer off.
AFAIK fast startup only affects shutdown, clicking restart will always do a full reboot. Shift clicking shutdown will do a full shutdown like you said, but shift clicking restart will start recovery mode.
I explain fast boot to people by saying “for some reason Microsoft went and made the Shut Down button not actually shut down your PC, it really just puts it into a ‘deep sleep’ mode, and to their credit, it lets them say that boot times are faster… But it also means that in order to FULLY restart the PC, you have to click restart… I know it’s a pain”
Usually I get looked at like I’m from another planet, but that reaction means they’ll probably remember it later.
And sometimes fast boot (I’m assuming we’re both talking about the bios setting) causes so many blue screens in windows that it becomes almost unusable.
I just recently had a wfh user ship me one of his monitors back because we had exhausted every thing I could think of troubleshooting-wise. When it arrived I unboxed it, plugged it in and the damn thing worked fine. I followed up with him and finally realized he had been trying to push the damn power LED instead of the actual power button.
Searching for a button is sometimes really hard, as manufacturers are quite inventive. But then again, reading an instruction is usually an option even if it is last resort (in the list it’s right after mailing the monitor to the support, it seems)
I spoke with an incredibly nice Indian fellow, and he asked me to try some troubleshooting. I had done all of it before, so I… pretended. But I told him all of the things I experienced when I did those steps (and lied further by giving ample time to pretend to do things.)
He RMA’d it just fine in the end and it works five years later. But I did feel bad about lying. I just didn’t want to take my whole working setup and do the troubleshooting steps again D:
I had one where yes everything was plugged in but… The power strips never plugged into the wall… They were just plugged into each other.
That one turned out to be an annoying bit of cable management that I wouldn’t have had to do if they would have just left things alone and let me handle the original ticket
“Hi so to save us some time I’ve restarted the computer, went ahead and assigned a static IP to all devices and put them all on the same sub net. While in the router I noticed there was a firmware update so I managed to do that removing the ROM chip and wrote an open source os that uses half the resources of the factory one…”
It helps too. I lost internet, did two full reboots of the modem and router. Nothing. Called support. He walked me through the process of rebooting the modem and router. It worked that time.
My tin-foil-hat conspiracy theory is that ISPs switch peoples’ Internet off intermittently to see if anyone notices and save on bandwidth. And they only switch it back on when you call in to tech support.
The number of times I’ve had Internet issues, restarted my modem and router and have it not fix the problem, but when I restart them when I’m on the phone with tech support and it magically fixes the problem just makes me so damn suspicious…
They probably are just incompetent. Killing internet to someone not using it wouldn’t really save anything. I’ve had the same service provider for 5 years and only had one interruption due to a downed pole or something. Cox and Comcast though, CONSTANT issues.
They don’t need to, they already use overprovisioning for bandwidth.
It’s only in rare cases where the backend is so old and limited that it only supports a specific maximum number of active clients that they do that, and I’ve only heard about it in rural areas and similar places
I spent months trying to tell my ISP that their side of a DHCP transaction wasn’t giving me my IPv6 address, being so specific as to send them the exact offending packets but it wasn’t until I took my entire network apart, unboxed their shitbox router and plugged that in that they would believe me.
One day my MIL’s Macintosh stopped being able to connect to the Internet over its internal ethernet, which was directly connected to the cable modem.
They called Comcast a bunch of times to no avail, so they sent someone out to check it. He had no idea what was wrong, so I said “Let’s connect your laptop to the Mac with an Ethernet cable just to make sure the Ethernet works.”
Dude looked at me like I had two heads. “It doesn’t work like that.”
I proceeded to grab a patch cable, hook them together, and mount the Mac’s public shares on the Windows machine, thus proving the Ethernet worked on both systems.
Turns out Comcast had changed the MTUs on the modems one night, which made the Mac not work for some reason. But getting a cheap router and putting it between solved the problem.
programmer_humor
Oldest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.