Nelsonaravindaraj / datejs

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

Spanish long date format "de" translates as 26e instead of "de" #145

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Format any date using the long or full date format in es-ES

What is the expected output? What do you see instead?
The format string
"dddd, dd' de 'MMMM' de 'yyyy H:mm:ss",
should return 
21 de febrero de 2009 (February 21, 2009)
instead we get
21 21e febrero 21e 2009 (February 21, 2009)

What version of the product are you using? On what operating system?

latest svn

Please provide any additional information below.

Original issue reported on code.google.com by philj...@hotmail.com on 26 Jan 2012 at 12:23

GoogleCodeExporter commented 8 years ago
The format.replace in toString is a little bit too heavy handed.
I assume this could affect other languages as well and perhaps an escape 
character of sorts could be used to allow thetype of format with an included 
string literal

Original comment by philj...@hotmail.com on 26 Jan 2012 at 12:33

GoogleCodeExporter commented 8 years ago
patched in my fork: https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 19 Sep 2013 at 9:02