mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Replaced moment.js with simple extended Date.prototype
This commit is contained in:
parent
a0dcd93fea
commit
b1678a1566
6 changed files with 218 additions and 28 deletions
|
|
@ -118,9 +118,9 @@ class AdvancedSearchPopupView extends AbstractViewNext {
|
|||
}
|
||||
|
||||
if (-1 < this.selectedDateValue()) {
|
||||
let d = new Date(), pad2 = v => 10 > v ? '0' + v : v;
|
||||
let d = new Date();
|
||||
d.setDate(d.getDate() - this.selectedDateValue());
|
||||
result.push('date:' + d.getFullYear()+'.'+pad2(d.getMonth()+1)+'.'+pad2(d.getDate()) + '/');
|
||||
result.push('date:' + d.format('Y.m.d') + '/');
|
||||
}
|
||||
|
||||
if (text) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue