shal19 / datejs

Automatically exported from code.google.com/p/datejs
Other
0 stars 0 forks source link

it-IT.js error in date format . instead of : H.mm instead of H:mm #182

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Italian language in IE and move it top
2. Use var time = date.toString(Date.CultureInfo.formatPatterns.shortTime); 
with date a valid date
3. time is formatted H.mm as

What is the expected output? What do you see instead?
Expected output H:mm
What is seen instead H.mm

What version of the product are you using? On what operating system?
Current source have the issue.

Please provide any additional information below.

The problem is in it-IT.js.
It is the only .js file which uses H.mm and not H:mm.
The same for long time H.mm.ss
Corrected locally with : instead of . and it works.
I'm not an Italian specialist but I don't think they use . for date seperator.

Original issue reported on code.google.com by vcarl...@gmail.com on 12 Dec 2013 at 1:56

GoogleCodeExporter commented 8 years ago
In fact . seams correct for italian time separator...
The problem is that on Windows 7 it's : in regional settings! With 2012 R2 it's 
.
So it's difficult to have a common behavior but this is not datajs side I think.

Original comment by vcarl...@gmail.com on 13 Dec 2013 at 9:34

GoogleCodeExporter commented 8 years ago
But... Time alone is the only format in datejs with H.mm or H.mm.ss
Full date time use : for time separator

Original comment by vcarl...@gmail.com on 13 Dec 2013 at 10:14