diff --git a/src/date.ts b/src/date.ts index 7b4e93a..713c8d7 100644 --- a/src/date.ts +++ b/src/date.ts @@ -378,18 +378,6 @@ export default function (bot: mwn) { } } - // Tweak set* methods (setHours, setUTCMinutes, etc) so that they - // return the modified XDate object rather than the seconds-since-epoch - // representation which is what JS Date() gives - (<(keyof startWith<'set', XDate>)[]>Object.getOwnPropertyNames(Date.prototype)) - .filter((f) => typeof f === 'string' && f.startsWith('set')) - .forEach((func) => { - let proxy = XDate.prototype[func]; - XDate.prototype[func] = function (...args: Parameters) { - return proxy.call(this, ...args); - }; - }); - return XDate as MwnDateStatic; }