• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

What's the time?

mudskipper

TPAFKAk2p2
Joined
Sep 12, 2009
Messages
26,487
Likes received
6,761
Thanks received
1,926
Location
Null island
100 days to add a single json request to get the current time, work out the offset value and add it to the current system time :rollin:

You've just fallen into the trap of failing to solve the problem, and in fact reproducing the original problem in a rather more complicated form. The whole point is that the system time can't be involved in any way, as it cannot be trusted. If a user has their clock set to a timezone offset several hours different from where they are, their locale set to a location several hours different in the other direction, and is accessing the Internet through a proxy server on the other side of the world from their location, you can't show them an accurate time. And as the complaint was not that the clock was inaccurate, but rather that it could be inaccurate due to relying on the system time, you're back at square one.

As precisely one person has complained, I don't understand why they don't just tell them to **** off. It's probably one of those morons who thinks the BBC is out to get them or something (of which there are a surprisingly large number on here). Useless twats :winker:
 
You've just fallen into the trap of failing to solve the problem, and in fact reproducing the original problem in a rather more complicated form. The whole point is that the system time can't be involved in any way, as it cannot be trusted. If a user has their clock set to a timezone offset several hours different from where they are, their locale set to a location several hours different in the other direction, and is accessing the Internet through a proxy server on the other side of the world from their location, you can't show them an accurate time. And as the complaint was not that the clock was inaccurate, but rather that it could be inaccurate due to relying on the system time, you're back at square one.

As precisely one person has complained, I don't understand why they don't just tell them to **** off. It's probably one of those morons who thinks the BBC is out to get them or something (of which there are a surprisingly large number on here). Useless twats :winker:

You're falling into the trap of solving the problem instead of keeping it in place and invoicing.
 
You've just fallen into the trap of failing to solve the problem, and in fact reproducing the original problem in a rather more complicated form. The whole point is that the system time can't be involved in any way, as it cannot be trusted. If a user has their clock set to a timezone offset several hours different from where they are, their locale set to a location several hours different in the other direction, and is accessing the Internet through a proxy server on the other side of the world from their location, you can't show them an accurate time. And as the complaint was not that the clock was inaccurate, but rather that it could be inaccurate due to relying on the system time, you're back at square one.

As precisely one person has complained, I don't understand why they don't just tell them to **** off. It's probably one of those morons who thinks the BBC is out to get them or something (of which there are a surprisingly large number on here). Useless twats :winker:

You show 'em GMT (or BST) and allow them to select their offset. Simples.
The weather shows me London unless I select my location. Same thing.
 
You're falling into the trap of solving the problem instead of keeping it in place and invoicing.

Sadly, the correct solution of telling the moron who complained to **** off has been rejected by the client, and the whole project has consequently been scrapped :ohwell
 
So if I complain that the weather's inaccurate, they'll remove that too?
 

Advertisers

Back
Top