mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Some tiny changes
This commit is contained in:
parent
21d3a9f401
commit
4321c11622
3 changed files with 3 additions and 3 deletions
2
dev/prototype.js
vendored
2
dev/prototype.js
vendored
|
|
@ -71,7 +71,7 @@
|
|||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
|
||||
Date.prototype.fromNow = function() {
|
||||
let unit = 'second',
|
||||
value = (this.getTime() - Date.now()) / 1000,
|
||||
value = Math.round((this.getTime() - Date.now()) / 1000),
|
||||
t = [[60,'minute'],[3600,'hour'],[86400,'day'],[2628000,'month'],[31536000,'year']],
|
||||
i = 5,
|
||||
abs = Math.abs(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue