Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Is Date.prototoype.toString always en-us? Date: Sat, 08 Apr 2017 20:13:57 +0200 Organization: PointedEars Software (PES) Lines: 39 Message-ID: <3000232.1N4lFRLu8V@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1491675237 1558 eJwFwYEBACAEBMCVJP8yjsj+I3SHzcVyI2gYzL7MqBAt5qtrAU/3eJDTjR5bcwBZpRmqzQ8iUBEL (8 Apr 2017 18:13:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 8 Apr 2017 18:13:57 +0000 (UTC) User-Agent: KNode/4.14.2 X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 7/04/2017 09:34, Stefan Ram wrote: >> RobG writes: >>> Also, whether this statement is true for other browsers where >>> the default language is other than English? >> >> I believe that in ECMAScript it returns an >> implementation-dependent string value that represents the >> date as a date and time in the current time zone using >> »a convenient, human-readable form«. > > Yes, per ECMA-262, but question is about MDN, not ECMA-262. You are proceeding from a false assumption. MDN is _not_ a documentation “primarily for Mozilla browsers”. However, if I install iceweasel-l10n-de=1:38.8.0esr-1~deb8u1, and execute “LC_ALL=de_CH.UTF-8 iceweasel”, although the GUI now is in German, (new Date()).toString() still is in English ("Sat Apr 08 2017 20:…:… GMT+0200 (CEST)"). (new Date()).toLocaleString() and (new Date()).toLocaleString("de") are not ("8.4.2017 20:…:…"). -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.