I assume this sort of thing <https://www.nzherald.co.nz/nz/february-29-allied-fuel-pumps-around-nz-ground-to-a-halt-as-systems-forget-leap-year/XEQBK5JLBZG6LO3VGUQ6Q2WGC4/>
happens because people are still trying to roll their own date
routines, instead of using the abundance of standard off-the-shelf
libraries that already know how to deal with all the well-known
pitfalls.
On 2024-02-29 00:17:46 +0000, Lawrence D'Oliveiro said:
I assume this sort of thing <https://www.nzherald.co.nz/nz/february-29-allied-fuel-pumps-around-nz-ground-to-a-halt-as-systems-forget-leap-year/XEQBK5JLBZG6LO3VGUQ6Q2WGC4/>
happens because people are still trying to roll their own date
routines, instead of using the abundance of standard off-the-shelf libraries that already know how to deal with all the well-known
pitfalls.
And why would a petrol pump even need to bother about the date?!? It shouldn't. The payment system would need to know the date, but
everybody else's payments systems are working fine and it's largely irrelevant that the bank statement is a day out.
Just yet another reason to NOT have silly "pay at pump" and
"robo-stations" with no staff. Just pay at the counter like a normal
human being rather than a lazy-ass.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 415 |
Nodes: | 16 (3 / 13) |
Uptime: | 115:55:23 |
Calls: | 8,696 |
Calls today: | 5 |
Files: | 13,259 |
Messages: | 5,949,201 |