Merge branch 'test' into dev
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
commit
b0be963541
|
@ -9,9 +9,13 @@ dateTime.$inject = ['$filter'];
|
|||
|
||||
export default function dateTime($filter) {
|
||||
return function(input, format) {
|
||||
let value = new Date(input);
|
||||
let offset = value.getTimezoneOffset() * 60000;
|
||||
value.setTime(value.getTime() + offset);
|
||||
let value;
|
||||
if (input) {
|
||||
value = new Date(input);
|
||||
let offset = value.getTimezoneOffset() * 60000;
|
||||
value.setTime(value.getTime() + offset);
|
||||
}
|
||||
|
||||
return $filter('date')(value, format);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue