JosephMajaseSithole / datejs

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

Date.format("S") doesn't work. #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Date.today().format("jS");

What is the expected output? What do you see instead?
Expect: 30th
Get: 30S

What version of the product are you using? On what operating system?
1.0 Alpha 1, Firefox 3.0

Extras.js: r182, 212-213
  case "S":
    return t("S");

Fix:
  case "S":
    return x.getOrdinal();

Original issue reported on code.google.com by arph...@gmail.com on 31 Mar 2009 at 1:42

GoogleCodeExporter commented 8 years ago
Just ensure you are using the latest bits from the SVN repository
(http://datejs.com/svn/).

With the most current code, your original sample does work as expected. 

Original comment by geoff%co...@gtempaccount.com on 31 Mar 2009 at 5:23