From bac2a2960455714e33d4a657a311718f275c04c8 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Mon, 19 May 2014 09:18:28 +0200 Subject: [PATCH] Fix created on date parsing --- .../angular/directives/components/authoring-directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/angular/directives/components/authoring-directive.js b/app/assets/javascripts/angular/directives/components/authoring-directive.js index d08f0c9110..a2921a6453 100644 --- a/app/assets/javascripts/angular/directives/components/authoring-directive.js +++ b/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');