javascript - datetime from stripe being formatted with angularjs -


so stripe giving me 1374030547 date string.

when use {{ mydatevar | date: 'mediumdata'}} in angular

it's returning jan 16, 1970

rails able take same date string , return 2013-07-16 accurate date.

so doing wrong angular here?

the date string needs in millis, if have value 1374030547000, should return today's date. fiddle demonstrating this.

function ctrl($scope) {  $scope.mytime = "1374030547000";    } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -