Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34418

Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale

Newsgroups comp.lang.javascript
Subject Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <9acafc2f-1bc7-442f-adb7-ee34368545a8@googlegroups.com> <XnsA85CD3AB78AA3eejj99@194.109.6.166> <1ic3q5nw29i0p$.fh4fksew706v$.dlg@40tude.net>
Date 2018-01-01 23:37 +0100
Message-ID <XnsA85DF05BDA963eejj99@194.109.6.166> (permalink)

Show all headers | View raw


JJ <jj4public@vfemail.net> wrote on 01 Jan 2018 in comp.lang.javascript:

> On Sun, 31 Dec 2017 20:48:28 +0100, Evertjan. wrote:
>> 
>>      document.write(new Date().toLocaleTimeString());
>> 
>>      // in Windows 10 Home ver 1709 build 16299.125:
>> 
>>      // '8:26:41 PM' Google Chrome version 64.0.3282.39       
>>               // (Off.B.) beta (64-bit)
>> 
>>      // '20:27:14' Microsoft Edge 41.16299.15.0
> 
> In Windows 7 SP1 x64, my time locale is set to:
> 
> - Short format: HH:mm
> - Long format: HH:mm:ss
> 
> When tested in web browsers:
> 
>   console.log(new Date().toLocaleTimeString());
> 
>   //"3:58:24 AM" - Chromium 59.0.3067.0 and Firefox ESR 52.1.2
>   //"03:58:24" - MSIE 11
>   //"03:58:24" - Opera (Presto) 11.64
> 
> In Ubuntu v14 x64 set with 24-hour time format:
> 
>   console.log(new Date().toLocaleTimeString());
> 
>   //"03.58.24" - Firefox 47
> 
> In Zorin v12 x64 set with 24-hour time format:
> 
>   console.log(new Date().toLocaleTimeString());
> 
>   //"03:58:24" - Chromium 60.0.3112.113
> 
> In Debian v8.9 x64 set with 24-hour time format:
> 
>   console.log(new Date().toLocaleTimeString());
> 
>   //"3:58:24 AM" - Firefox ESR 52.3.0
> 
> 
> So, it looks like a web browser issue rather than OS.

Indeed, but only if you take issue with it.

Methinks having the browser or the o.s. settings dictate 
how my web-page will visualize time is a non-issue.

If at all possible, static date/time should be rendered 
serverside, just like all other data code that messses up 
crossbrowser or crossbrowserversion wize.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2017-12-31 09:57 -0800
  Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-12-31 20:48 +0100
    Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale JJ <jj4public@vfemail.net> - 2018-01-02 04:41 +0700
      Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-01 23:37 +0100
      Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-03 02:25 +0100
        Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-03 12:55 +0100
        Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-04 04:02 -0800
          Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Martin Honnen <martin.honnen@gmx.de> - 2018-01-04 13:30 +0100
          Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-04 16:48 +0100
  Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-06 13:02 -0200
    Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-06 11:18 -0800
      Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-07 13:07 -0200
        Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-07 12:19 -0800
          Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-08 11:43 +0000
            Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-08 13:26 +0100
              Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-08 16:36 +0000
            Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-08 06:09 -0800
              Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-08 16:33 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-08 18:58 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-08 19:33 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-08 20:26 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-08 22:10 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 02:55 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-09 09:36 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 02:10 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-09 03:35 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-09 15:51 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-09 13:17 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-09 14:44 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-09 14:13 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-10 17:28 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-10 21:01 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-10 21:00 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-09 13:19 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-20 08:43 -0800
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-21 15:09 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-21 17:25 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-21 16:41 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-21 19:15 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-21 18:56 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-21 21:58 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-21 23:03 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-22 10:41 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-22 11:17 -0200
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-22 14:23 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-23 03:50 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-23 04:41 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-23 08:55 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-23 14:44 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-23 20:04 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-23 23:10 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-23 08:44 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-23 03:24 -0800
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-01-23 13:27 -0800
                Zulu time (was: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-24 00:44 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-24 01:37 -0200
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-24 04:57 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-24 04:10 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-24 10:19 -0200
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-25 08:20 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-25 10:26 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-25 14:26 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-26 15:42 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-26 11:19 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-27 07:16 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-26 23:22 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-27 10:33 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-27 11:30 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-28 07:38 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-27 23:47 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-28 10:07 +1100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Mark-" <nospam@mapson.xyz> - 2018-01-28 01:14 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-28 05:25 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Andrew Poulos <ap_prog@hotmail.com> - 2018-01-28 16:07 +1100
                [OT] Fallacies (was: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-28 07:18 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale John G Harris <niam@jghnorth.org.uk.invalid> - 2018-01-24 13:51 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Joao Rodrigues <groups_jr-1@yahoo.com> - 2018-01-24 17:13 -0200
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-23 03:00 -0800
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-23 14:14 +0000
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-01-23 15:44 +0100
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-23 04:24 -0800
                Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Jon Ribbens <jon+usenet@unequivocal.eu> - 2018-01-23 14:29 +0000
  Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-23 03:19 -0800
  Re: new Date().toLocaleTimeString() sponned in Fall Creators Update. UL locale Dr J R Stockton <J.R.Stockton@physics.org> - 2018-01-25 13:33 -0800

csiph-web