Home ยป Forum ยป Author Hangout

Forum: Author Hangout

Date & Time layout

jimq2 ๐Ÿšซ

Just started using my laptop again and SoL is showing today's date as 05/09/2026 and the time in 24 hr format. My desk computer at home is still showing 09/05/2026 and am/pm format.

Anyone know where to reset it?

Dominions Son ๐Ÿšซ

@jimq2

That will depend on what operating system you are using.

Replies:   Dinsdale
Dinsdale ๐Ÿšซ

@Dominions Son

I thought the browser determined how the date/time are formatted. It starts off with the country settings but then my browser allows me to fine tune these fields.
Your browser appears to be set to US standard.

Replies:   Dominions Son
Dominions Son ๐Ÿšซ
Updated:

@Dinsdale

I'm on Win 11 and primarily use Firefox. I have the date format for Windows set to yyyy/mm/dd.

As far as I can tell, Firefox does not have it's own internal date format settings.

zebra69347 ๐Ÿšซ

@jimq2

Most of the world uses dd/mm/yyyy, think USA is about only country using mm/dd/yyyy. If you want to sort by date yyyy/mm/dd is a good choice. For Microsoft look under Settings, Time&Language.

Lazeez Jiddan (Webmaster)

@jimq2

The site uses javascript to insert dates and times in your local format. So you need to set your system's built in format; and that depends on what you're using.

Replies:   bison9
bison9 ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

Which BTW, is the only sane thing to do.

You go by the locale the user's browser has configured.

Replies:   helmut_meukel
helmut_meukel ๐Ÿšซ
Updated:

@bison9

You go by the locale the user's browser has configured.

That's not exactly what Lazeez answered. He refered to the Operating System's setting. The user's browser should by default use these settings, but some browsers may allow to change these settings for their display without affecting the overall system settings.
I once programmed a system to deal with data sent by foreign commercial customers as plain text data with dates formatted in their local format. I ended up by storing the Date/Time setting used by this customer in the customer's company data (like address, phone etc.). This allowed my program to not only correctly store the text format data but to use the customers settings on invoices etc. sent to him.
I once tried to program a general date conversion routine but there are always dates where you have to guesstimate which date is meant like 9/11 vs. 11/9. Guessing the format from the delimiter character used, helps. Two digit years can be a problem (is a person born in '24 2 years old or 102?). A value > 12 can't be a month, a value > 31 can't be a day. Depending on the application, dates somewhere in the past or in the future may be invalid, reducing the problem. However there always were ambivalent date entries which needed decision by a human. I stored both the original Date/Time string, the converted Date/Time value, and a flag denoting automated or human assisted conversion in the database.

HM.

Replies:   Dinsdale
Dinsdale ๐Ÿšซ

@helmut_meukel

The Mozilla-based browsers (Firefox, Seamonkey etc) allow you to set the locale independently of the OS's locale. No idea about the Chrome-based ones because I uninstalled Brave a couple of days ago - it was months since I last used it.

Back to Top

 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.


Log In