Forum

> > Unreal Software > Time format bug
Forums overviewUnreal Software overviewLog in to reply

English Time format bug

10 replies
To the start Previous 1 Next To the start

old Time format bug

Happy Camper
User Off Offline

Quote
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.

old Re: Time format bug

Seekay
Reviewer Off Offline

Quote
Can confirm, using Chrome on Windows.

But who uses y-m-d anyways, I mean plz.

old Re: Time format bug

DC
Admin Off Offline

Quote
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

old Re: Time format bug

Seekay
Reviewer Off Offline

Quote
Yup, it's fine now. Makes me wonder for how long this was wrong. I mean, surely someone must have noticed it?

old Re: Time format bug

Seekay
Reviewer Off Offline

Quote
Damn. So you are telling me this has been going on unnoticed for like a decade?

old Re: Time format bug

Happy Camper
User Off Offline

Quote
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.

old Re: Time format bug

DC
Admin Off Offline

Quote
I'm not sure about this. I can't remember that I added it recently. It's possible but I don't think so.

old Re: Time format bug

Yates
Reviewer Off Offline

Quote
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

old Re: Time format bug

DC
Admin Off Offline

Quote
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.

old Re: Time format bug

Yates
Reviewer Off Offline

Quote
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
Log in to replyUnreal Software overviewForums overview