Time format bug
10 replies



22.06.15 10:10:41 pm
I didn't see anyone else reporting this, so...
Some of the time formats in account settings seem wrong.
"y-m-d h:i:s a" gives me a 24 hour clock + am/pm.
"y-m-d H:i:s" gives a 12 hour clock without am/pm.
I am using Firefox 38.0 in Linux, but I don't think that's the problem?
Thanks for adding y-m-d formats by the way.
Some of the time formats in account settings seem wrong.
"y-m-d h:i:s a" gives me a 24 hour clock + am/pm.
"y-m-d H:i:s" gives a 12 hour clock without am/pm.
I am using Firefox 38.0 in Linux, but I don't think that's the problem?
Thanks for adding y-m-d formats by the way.

happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
Can confirm, using Chrome on Windows.
But who uses y-m-d anyways, I mean plz.
But who uses y-m-d anyways, I mean plz.
Average Carnage Contest enjoyer
Wow it actually was wrong for many time formats. I mixed up H (24h) and h (12h) in some combinations. Of course whenever I use a (for AM/PM) I have to use h (12h). The formats in the settings are correct but the actual code wasn't 
I changed that so it should be fixed now
(btw: this is all server-sided code, so the browser doesn't matter)
@
Seekay: It really depends on your country and on what people normally use there. I think the most fucked up date format is actually month day year because it's a horribly random order. medium unit (month), small unit (day), large unit (year)? But it's the most common format in some countries.

I changed that so it should be fixed now

(btw: this is all server-sided code, so the browser doesn't matter)
@

edited 1×, last 22.06.15 10:35:40 pm
Yup, it's fine now. Makes me wonder for how long this was wrong. I mean, surely someone must have noticed it?
Average Carnage Contest enjoyer
Damn. So you are telling me this has been going on unnoticed for like a decade?

Average Carnage Contest enjoyer
I thought y-m-d was added recently to the website? I remember checking the formats before, looking for y-m-d, but I didn't find it so I used some other format instead. I could be wrong, though.
Thanks for fixing it.
Thanks for fixing it.

happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
I'm not sure about this. I can't remember that I added it recently. It's possible but I don't think so.
FireFox and Safari actually do change it for you in some cases. Which then depends on the browser language (American does m/d/y, Dutch does d-m-y and English does d/m/y). Very fucked up. Safari doesn't even support HTML5 date picker, noobs

What? Are you sure? How do they even know which parts of a site are a date? Do they parse the whole text and act like "okay this looks like a date, let's change it!"? This sounds very odd... and bad. Browsers shouldn't change the content unless you install crazy plugins to do so.
Was messing around with browser testing on a shitty CMS we had to make for school a year ago, FireFox and Safari fucked up the datetime strings I echo'd. So they used to do it, might not do now. I'll ask for the code back from one of my teachers and see if it still happens.
I know for sure that some browsers don't accept date formats you put in RSS feed with JavaScript. So they definitely know how to fuck things up.
I know for sure that some browsers don't accept date formats you put in RSS feed with JavaScript. So they definitely know how to fuck things up.



