mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
searchSubtractFormatDateHelper to native as moment.js not needed
This commit is contained in:
parent
45fa12be42
commit
327e6f65cd
3 changed files with 10 additions and 19 deletions
|
|
@ -39,17 +39,6 @@ export function momentNowUnix() {
|
|||
return _momentNow || 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {number} date
|
||||
* @returns {string}
|
||||
*/
|
||||
export function searchSubtractFormatDateHelper(date) {
|
||||
return momentNow()
|
||||
.clone()
|
||||
.subtract(date, 'days')
|
||||
.format('YYYY.MM.DD');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Object} m
|
||||
* @returns {string}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue