mirror of https://github.com/moparisthebest/mail
[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
|
* Date formatting
|
||||||
*/
|
*/
|
||||||
$scope.formatDate = function(date) {
|
$scope.formatDate = function(date) {
|
||||||
|
if (typeof date === 'string') {
|
||||||
|
date = new Date(date);
|
||||||
|
}
|
||||||
|
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
|
|
||||||
// return time if mail is from today
|
// return time if mail is from today
|
||||||
|
|
Loading…
Reference in New Issue