fix time comparison bug, add dry run to avoid spamming relays

This commit is contained in:
2023-11-24 10:25:12 -05:00
parent 3ffaaa3412
commit f7c6034fb0
538 changed files with 91995 additions and 13 deletions
+15
View File
@@ -0,0 +1,15 @@
export var defaultCalendar = {
sameDay: '[Today at] LT',
nextDay: '[Tomorrow at] LT',
nextWeek: 'dddd [at] LT',
lastDay: '[Yesterday at] LT',
lastWeek: '[Last] dddd [at] LT',
sameElse: 'L',
};
import isFunction from '../utils/is-function';
export function calendar(key, mom, now) {
var output = this._calendar[key] || this._calendar['sameElse'];
return isFunction(output) ? output.call(mom, now) : output;
}