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:
parent
fb0454142c
commit
b68bebaf12
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user