From a912f2f8a4c8984ffec0f6d801b2464a7db28ec4 Mon Sep 17 00:00:00 2001 From: shaoying Date: Sun, 12 Feb 2023 09:04:48 +0800 Subject: [PATCH] opt date.js --- plugin/input/date.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/input/date.js b/plugin/input/date.js index 030ed287..43434ee3 100644 --- a/plugin/input/date.js +++ b/plugin/input/date.js @@ -8,12 +8,12 @@ Volcanos(chat.ONFIGURE, {date: { HOUR, function(event, can, button, value) { now.setHours(parseInt(value)||0), show(now) }, MINUTE, function(event, can, button, value) { now.setMinutes(parseInt(value)||0), show(now) }, SECOND, function(event, can, button, value) { now.setSeconds(parseInt(value)||0), show(now) }, - TODAY, function() { _cb(show(today)) }, + TODAY, function() { show(today) }, - mdb.PREV, function() { now.setMonth(now.getMonth()-1), _cb(show(now)) }, + mdb.PREV, function() { now.setMonth(now.getMonth()-1), show(now) }, YEAR, function(event, can, button, value) { now.setFullYear(parseInt(value)), show(now) }, MONTH, function(event, can, button, value) { now.setMonth(parseInt(value)-1), show(now) }, - mdb.NEXT, function() { now.setMonth(now.getMonth()+1), _cb(show(now)) }, + mdb.NEXT, function() { now.setMonth(now.getMonth()+1), show(now) }, "rand", function() { now.setDate((Math.random() * 100 - 50) + now.getDate()), show(now) }, "over", function() { now.setFullYear(now.getFullYear()-1), show(now) },