timrwood/moment — Issue #175: A problem with moment.format.
Author: nevf
Created: 2012-02-22 08:13:19+00:00
State: open

I've just started using moment and am seeing a problem with the following:

value = moment().format( "Do MMM YYYY hh:mm am" );

results in: 22nd Feb 2012 07:06 pm**6**

Notice the last digit of the time is repeated after the 'pm'.

I get similar results when passing a Date to moment.

I'm using moment in the Browser and using Require.js to load the .min files.

I also had a problem where the language was not English and I had to add: moment.lang('en'); to fix this. The Docs indicate English is sued by default.

-Neville http://www.surfulater.com