1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-21 23:08:50 -05:00

[WO-806] fix date filter on iOS

This commit is contained in:
Felix Hammerl 2015-01-12 16:16:32 +01:00
parent fb0454142c
commit b68bebaf12

View File

@ -136,6 +136,10 @@ var MailListCtrl = function($scope, $timeout, $location, $filter, $q, status, no
* Date formatting
*/
$scope.formatDate = function(date) {
if (typeof date === 'string') {
date = new Date(date);
}
var now = new Date();
// return time if mail is from today