English Time format bug

10 replies
Goto Page
To the start Previous 1 Next To the start
22.06.15 10:10:41 pm
Up
Happy Camper
User
Offline Off
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.
happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
22.06.15 10:26:53 pm
Up
Seekay
Reviewer
Offline Off
Can confirm, using Chrome on Windows.

But who uses y-m-d anyways, I mean plz.
Wash your hands! :­)
22.06.15 10:32:32 pm
Up
DC
Admin
Offline Off
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)

@user 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.
edited 1×, last 22.06.15 10:35:40 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.06.15 10:35:18 pm
Up
Seekay
Reviewer
Offline Off
Yup, it's fine now. Makes me wonder for how long this was wrong. I mean, surely someone must have noticed it?
Wash your hands! :­)
22.06.15 10:36:13 pm
Up
DC
Admin
Offline Off
I never touched this code. So it never was right
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.06.15 10:38:59 pm
Up
Seekay
Reviewer
Offline Off
Damn. So you are telling me this has been going on unnoticed for like a decade?
Wash your hands! :­)
22.06.15 10:46:36 pm
Up
Happy Camper
User
Offline Off
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.
happy camper n Informal a happy, satisifed person (esp in the phrase not a happy camper)
22.06.15 11:18:42 pm
Up
DC
Admin
Offline Off
I'm not sure about this. I can't remember that I added it recently. It's possible but I don't think so.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.06.15 11:30:51 pm
Up
Yates
Reviewer
Offline Off
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
22.06.15 11:38:05 pm
Up
DC
Admin
Offline Off
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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
22.06.15 11:43:49 pm
Up
Yates
Reviewer
Offline Off
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.
To the start Previous 1 Next To the start