Fix created on date parsing

pull/1293/head
Hagen Schink 11 years ago
parent be3890b566
commit bac2a29604
  1. 2
      app/assets/javascripts/angular/directives/components/authoring-directive.js

@ -40,7 +40,7 @@ angular.module('openproject.uiComponents')
// TODO: The timezone of scope.time is UTC. Thus, we need to adapt the
// time to the local timezone or user setting.
var createdOn = moment.utc(scope.createdOn);
var createdOn = moment(scope.createdOn, "MM/DD/YYYY/ HH:mm A").utc();
var timeago = createdOn.fromNow();
var time = createdOn.format('LLL');

Loading…
Cancel
Save