Self-Pay Gas Station Pumps Break Across NZ As Software Can't Handle Leap Day (arstechnica.com) 92
An anonymous reader quotes a report from Ars Technica: Today is Leap Day, meaning that for the first time in four years, it's February 29. That's normally a quirky, astronomical factoid (or a very special birthday for some). But that unique calendar date broke gas station payment systems across New Zealand for much of the day. As reported by numerous international outlets, self-serve pumps in New Zealand were unable to accept card payments due to a problem with the gas pumps' payment processing software. The New Zealand Herald reported that the outage lasted "more than 10 hours." This effectively shuttered some gas stations, while others had to rely on in-store payments. The outage affected suppliers, including Allied Petroleum, BP, Gull, Waitomo, and Z Energy, and has reportedly been fixed. In-house payment solutions, such as BP fuel cards and the Waitomo app, reportedly still worked during the outage. A representative for Petroleum, when prompted via Facebook to "maybe remember Leap Day in four years' time," responded: "We'll add it to our Outlook reminders :("
MMMMMonopolies! (Score:2)
Maybe the NZ Government will think about regulating such a monopoly provider of an essential service so they are either reliable or not a monopoly.
Re: (Score:2)
Re: (Score:3)
Article says one of the affected suppliers is Z Energy, and according to Invenco [invenco.com], Z Energy alone represents "around 45 per cent of New Zealand's total fuel needs."
So... a lot of people were affected by this.
=Smidge=
Re: (Score:2)
Re: (Score:1)
Anyway, good thing for those Luddites who haven't converted to battery only EVs and who still live in the middle ages with their polluting ICE! This has obviously contributed to saving the planet!
Re: (Score:3)
Z Energy is also a major wholesale importer for other fuel outlets as well.
But theres a lot of retail competition here - where I live, a modest town of 22,000 people, there are 2 Z fuel stations, 2 BP fuel stations, 1 Challenge fuel station, 1 Mobil fuel station and a Waitomo fuel station.
Travel 20 minutes up the road to the nearest city, and you can find 50 fuel stations covering a population of 185,000, of which only 8 are Z Energy fuel stations.
Re: (Score:2)
Re: (Score:2)
Not the same fuel pump provider, the same payment processor.
Which when you consider how fucking tiny NZs population really is, its not surprising that theres only a handful of providers in the first place - that one of the specialises in fuel station services is not surprising.
Re: (Score:2)
While agree the problem is them using a common provider I was pissed at nicoaiplum implying it was the fault of our government. While our, like every government, could use improvement, they have a pretty good balance of being hands on with essential service only were it is needed for the public good.
With the decline in the number of petrol stations and homogeneity of those remaining such a thing
Re: (Score:2)
Heh, see my other post about bitumen products, the government definitely fucked up there by being about as hands on as you can get
Re: (Score:2)
Re: (Score:2)
While our, like every government, could use improvement, they have a pretty good balance of being hands on with essential service only were it is needed for the public good.
Unless it's with supermarkets.
For non-NZers, there's a duopoly that essentially owns the entire market there, and ensures they squeeze the absolute maximum out of the population of the entire country while the government - any government, doesn't make any difference who's in power - sits there and wrings its hands and says "gosh, isn't this awful? If only someone had the power to do something to fix it".
Re: (Score:2)
Re:MMMMMonopolies! (Score:5, Informative)
Normally Id agree with you, but NZ governments arent great with regulation.
We are a country of 6 million trying to act like a country of 25 million, so we want nice things while not having the import market of the size to be as cheap as elsewhere.
For example, until recently, there was one supplier of bitumen products covering 70% of the NZ market, and all bitumen is imported here. The NZ transport agency didnt like having to pay a foreign company rates higher than other countries so it had legislation passed to make the transport agency the sole supplier and required importers to sell to it at a fixed price, much below the then current market rate.
The 70% holder of the market basically overnight went “yeah, fuck no, bye” and pulled out of the market rather than sell to the government at something at or below cost. It stopped importing the product entirely.
So now theres a massive shortage of basic roadbuilding materials, and no new companies filling the hole because why the fuck would they?
Re: (Score:1)
Re: (Score:2)
A small outage once in 4 years affecting less than half of companies involved which in most cases had a work around (not being able to pay at the pump doesn't mean not being able to buy fuel since it still worked inside), is not something the NZ government will given the tiniest shit about.
Huh? (Score:2)
while others had to rely on in-store payments.
That's all I use when I pay for my gas. I hand over cash, the person gives me change. No worries about card skimmers, bad charges, or, in the current case, payment not working. Also prevents a card company from selling my data.
Re: (Score:3)
Not like you couldn't have the same vulnerability at the ATM...
Nope. The ATMs I use are either at my place of work, located in a secure area, or at known good locations. Also, they've rejiggered the machines to make it essentially impossible to skim because the machine is flat faced where the card gets inserted, meaning there is no way to put an overlay over the slot without it being noticed.
Re: (Score:2)
I've seen a skimmer that is about as flat as a piece of paper - it actually goes INTO the machine, and you need to use a hooked tool to get it back out. Pretty much completely invisible when installed.
Re: (Score:2)
Apparently, this really is a thing. Who knew?
It used to be you could spot the skimmers by the little "no chip" note that was invariably taped over the slot to encourage you to swipe your card. Now, even the chip reader isn't safe.
Fortunately, all of my cards are contactless, which is a safe as it gets for now.
Re: (Score:2)
Just keep it in a faraday shielded wallet or such when not in use, of course.
There have been cases where they used a setup to read the cards and charge them remotely, used them at bars, and used a bar-sounding name on the charge...
They probably hoped that by targeting drunks, they'd get away with it.
Re: (Score:1)
Re: (Score:3)
while others had to rely on in-store payments.
That's all I use when I pay for my gas. I hand over cash, the person gives me change. No worries about card skimmers, bad charges, or, in the current case, payment not working. Also prevents a card company from selling my data.
I mostly use cards for the points, I don't really care if they track my purchases. But I always make a point of having some cash on hand for cases when cards don't work, not a huge amount that it would hurt to lose or be stolen, but enough to pay for a dinner or some gas. Sometimes use it for tips as well, when I'm not sure who tipping on a card may actually go to. Backups are not just for files.
Re: (Score:2)
Re: (Score:2)
Paying tips in cash doesn't mean it's all going to your server unless they're pocketing the tip which at most places would probably get them fired. Most service industry places i've known of usually pool the tips of everyone on the shift then at end of shift the whole tip bucket gets evenly distributed between all the servers / bartenders that worked that shift and bar backs / bussers getting some fraction of the tips as well.
That would be fine so long as all those people have access to all the card transactions and know exactly how much in total is to be split between them. Some unscrupulous owners skim some of that off for themselves as well though, and how would the workers know? Sorry, I'm tipping the help, not the management. Cash adds a bit more transparency, but I never said it was perfect.
Re: (Score:3)
Re: (Score:1)
Sharing tips like this pretty rare.
And completely voids the point of tipping.
I know cases where the waiters share 25% or so with the kitchen, though. Because the kitchen personell has no contact to the customers.
Re: (Score:2)
...but enough to pay for a dinner or some gas.
So you carry a couple hundred thousand on you at all times?
Re: (Score:2)
...but enough to pay for a dinner or some gas.
So you carry a couple hundred thousand on you at all times?
No about $100 CAD. We don't use the Rial here.
Re: (Score:2)
some pumps had an DBA on them did not last long (Score:2)
some pumps had an DBA on them did not last long
Re: (Score:2)
Where I am the gas stations trust customers to not drive off without paying, so you park, pump, then go inside to pay. With cash or card as preferred.
I'm sorry you live among a population that can't be trusted not to steal if the slightest opportunity presents itself.
Re: (Score:2)
I'm sorry you live among a population that can't be trusted not to steal if the slightest opportunity presents itself.
Humans ruin everything [si.com]. This is why we can't have nice things.
Re: (Score:2)
I'm sorry you live among a population that can't be trusted not to steal if the slightest opportunity presents itself.
Thank you, it does suck and is sad to see it get worse over time. And it's not just in the "big cities" anymore as they've migrated their way out to at least the suburbs. The desperately poor immigrants coming by the millions don't help the issue, either.
Re: (Score:2)
$55? Why are you getting petrol when your tank is already nearly full? /s
Re: (Score:2)
You know what I find worse then having to go inside twice for the transaction? Having my card info stolen. Besides, most gas stations I shop at give a discount for cash on gasoline. So yeah, I think the "burden" of walking a few dozen steps to the cashier, then to the pump then back to the cashier is really a nothing burger.
I think the only reason I wouldn't want to do this would be if I actually had young children with me. Otherwise, just walk your lazy ass inside. Typical American could probably use the e
Re: (Score:2)
Paying cash for gas is annoying in this pay before you pump world.
That is America, not the world. The world has pay after you pump.
Re: (Score:2)
I'm in BC, have to pay up front. Problem was the gas stations were taking thefts out of the workers wages, incentivizing them to stop thefts and one kid got dragged to his death, a gruesome death.
Re: (Score:2)
Re: (Score:2)
There's arseholes everywhere. Pay at the pump and then make a phone call while sitting there seems common.
Re: (Score:2)
I'd like to do that too, but it's hard to argue with 4% cash back on gas when I pay with my card. Or does your area still have separate cash and card prices?
I hate advertisement petrol pumps (Score:1)
I know of at least one that's a prepaid pump and it's in an industrial area, the advantage of which is that it is opened 24 hours but there's plenty of gas stations around that are also opened 24 hours.
I was hoping to read something about the advertisement petrol pumps failing, I hate those thing so much, I'm just trying to get some gas dude I don't give a s$#t about your large cheeseburger combo, I am waiting for the day where somet
Re: (Score:2)
I'm in favor of injecting spray foam into the speakers on those pumps.
Re: (Score:2)
Of course the truly evil of us here in NZ never knew about it yesterday while we charged our cars for free from solar panels connected to an ad free wall charger. Que evil laughter
Re: (Score:2)
Re: (Score:1)
you might have noticed the story is about another country.....
Re: (Score:2)
Re: (Score:1)
so - its called a PETROL STATION in NZ.
American ppl need to lie and call it what its not - a 'gas' station
Re: (Score:2)
Maybe you're not aware but Slashdot is based in the US. Just like every other news site Slashdot uses the terms and metrics of the country they are based in.
I've even seen the BBC quoting an American (complete with quotation marks) referring to their mother as saying "Mum" when no American says that. It's just the way the world works.
Re: (Score:2)
Don't NZ petrol stations sell gas? Some cars have been built or modified to run on propane and butane.
Do American "gas" stations also sell gaseous fuel for cars? I guess they just call it propane.
Re: NZ have Petrol Stations (Score:2)
Re: (Score:2)
Incorrect (Score:3, Insightful)
There are no "gas" stations in New Zealand unless is a Petrol Station that also sells LPG from a pump
However Petrol Stations which sell petroleum spirit and diesel fuel are very common.
Re: (Score:3)
Re: (Score:2)
'Tiki Tour'. I like that. Saying that I'm taking the 'scenic route' whenever I get lost is so cliche`.
Re: (Score:2)
Re: (Score:2)
Is Venus the morning star or the evening star?
Re: (Score:2)
However Petrol Stations which sell petroleum spirit and diesel fuel are very common.
If you are going to be pedantic about the use of "gas" to describe petrol, then it helps if your post does not also then equate it to an archaic term "petroleum spirit" which is used by precisely zero people in the market you claim to represent.
Things always break on leap day, for decades (Score:2)
Re: (Score:2)
I don't get it either. This is a long-solved problem. There are very few reasons to write your own date code as the standard library for whatever you're using likely already has what you need. If for some reason you need to do this yourself, it's not difficult at all. There are just a few rules and they're trivial to code. It's the kind of project you might see as a homework assignment. If you can't handle that, maybe find a different profession?
Leap day breaking code... Unbelievable...
Re: (Score:3)
Application ran 24/7 and did daily and monthly reports on activity. Guy writing the reporting code was a Poly Sci major who learned to code a little on his own.
CS/CE grads were working on more difficult parts of the system.
QA didn't test for a leap year.
On the next leap day the distributed app spit out bad reports for Feb 29 and the month of Feb. There was an array in the code hard coded with the number of days in the month, 28 for Feb.
I don't want to beat on Poly Sc
Re: (Score:2)
I'm not saying it doesn't happen. That's what the article is about, for goodness sake. I'm only saying that it's absurd that still happens.
Re: (Score:2)
Re: (Score:2)
Because experience retires. Newbies get hired.
Leap days aren't some obscure fact about our calendar nor are they complicated to handle. A program to generate a calendar given a year or a function that can add days to a date is simple enough to be homework assignment. This shouldn't be a problem that requires wisdom and experience!
Do all languages have "libraries"?
A library is just a collection of routines. A standard library is a collection of routines that users can expect to be available. Odds are close to100% that whatever a beginner is using is going to have a standard library.
Re: (Score:2)
Re: (Score:2)
A library is just a collection of routines.
No it isn't. It's a set of resources that your code can hook into or otherwise import. Can be any or all of data structures, functions, and/or binary blobs, which themselves can be precompiled code (e.g. closed source libraries,) graphics, or basically anything that can have digital representation.
A standard library is a collection of routines that users can expect to be available.
Again, no. It's just a component of the language that is both defined and available across all implementations of the language. If an implementation is missing anything, anything is materially different, or anythi
Re: (Score:2)
You do realize that nothing you've written contradicts my post, right? Just how stupid are you?
Also, your stalking is getting creepy. Go fixate on someone else.
Re: Things always break on leap day, for decades (Score:2)
Libraries aren't just a "collection of routines", so yeah, it contradicts your comment. You can't tell the difference because you're a retard.
And no, I'm not stalking you. Trust me, you're really not important to anybody, let alone me. In fact, it's arguable that the opposite is true as usually you're the one cold replying to me.
As for what I replied here, I think this guy put it best:
https://slashdot.org/comments.... [slashdot.org]
I was there 25 years ago (Score:4, Funny)
I was working on code that talked to gas pumps back in 1997-2000, and at some point in 1998, I noticed that the code for leap year wouldn't be right for 2000. So I fixed it. And I didn't test it. And it was in assembly language. And I got the branch condition wrong. And it would break on all leap years. Fortunately all the Y2K mania meant that someone else did test it before it became a problem. But it would just have messed up the date on your receipt at worst.
In-house payment solutions . . . reportedly still worked during the outage.
Yep this is a problem with the place that handles the credit cards. Probably caused by an outsourced idiot, because local idiots are too expensive. I remember back then when I freaked out some of our contractors from India that were working on our cash acceptor project, by showing them a two-dollar bill.
Re: (Score:2)
"I freaked out some of our contractors from India that were working on our cash acceptor project, by showing them a two-dollar bill."
NZ doesn't have $2 bills, The $1 and $2 are coins.
Re: (Score:2)
Re: (Score:2)
"Back in 1990's we still had $1 and $2 notes in NZ."
And in the 1960s we had pennies made of copper. the diameter was about the same as a D size battery, so we used them to get a good connection in a torch.
Re: (Score:2)
Re: (Score:3)
I do recall software discussions about how many days you can have in a day. It came up when writing code for the TAB where a 'race day' can go past midnight for night races so we had to code for more than 24 hours in a day. Yea, in assembly language too. That was in the 1980s so no Y2K worr
Re: (Score:2)
I find the best way to handle time on computers is to just use the number of seconds (or sub-seconds) since an epoch. Then convert that for display in human readable format.
That way you have a single count that always increases, and if you store it then bugs can be fixed retroactively without altering records. It also makes handling things like leap seconds easier, because you only need to account for them when converting to UTC or some other format that uses them.
Doing arithmetic on time is trivial.
I've wr
Re: (Score:1)
Leap year problems can have annoying side effects.
Like keeping doors locked, or elevators shut down, or the opposite, because the software thinks it is Sunday instead of Monday, or vise versa.
I'm actually surprised (Score:2)
I mean, we've had leap years for a long time, and we've had self-pay gas pumps for a couple decades. Why didn't this happen before now?
Re: (Score:2)
Re: (Score:2)
Why didn't this happen before now?
I'm guessing that it's because every so often, the guys who write the pump code retire. The new guys don't like the old guys' code, and rewrite it from scratch. All the lessons learned by the old guys are lost on the new guys, so the new code has to be patched year after year for decades in order to squeeze out all the bugs. Then the cycle repeats as the new guys become the old retired guys.
Re: (Score:2)
Or the new Internet fly-by-nighters selling a competing product for cheaper. And, of course, it hasn't been tested on anything anywhere.
Re: (Score:2)
That's what you get (Score:2)
for not switching to memory-safe programming languages.
Or not.
What's the big deal? (Score:2)
Factoid? (Score:2)
That's normally a quirky, astronomical factoid.
Doesn't the -oid suffix indicate that it's not really a fact? Androids are not really men. Asteroids are not really stars.
Falsehoods programmers believe about time (Score:2)
Looks like a programmer didn't read Falsehoods programmers believe about time [github.com]
Did their manager want the code shipped before it was adequately tested?
I'm curious about the follow up (Score:2)
...so who wrote this software?
I'd like to know if there were actual consequences, lawsuits, and firings.
It's not like Leap Day sneaks up on anyone, this is rookie-level programming.
Defective by design (Score:2)
*conspiracy warning*
This was a test run to see how it affects the climate in preparation for mandatory days without cars.