Files
url_tracker_tool/node_modules/dayjs/esm/plugin/negativeYear/index.js
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

36 lines
781 B
JavaScript

export default (function (_, c, dayjs) {
var proto = c.prototype;
var parseDate = function parseDate(cfg) {
var date = cfg.date,
utc = cfg.utc;
if (typeof date === 'string' && date.charAt(0) === '-') {
var normalData = date.slice(1);
var newDate = dayjs(normalData);
if (utc) {
newDate = dayjs.utc(normalData);
} else {
newDate = dayjs(normalData);
}
var fullYear = newDate.year();
if (date.indexOf("-" + fullYear) !== -1) {
return dayjs(newDate).subtract(fullYear * 2, 'year').toDate();
}
return date;
}
return date;
};
var oldParse = proto.parse;
proto.parse = function (cfg) {
cfg.date = parseDate.bind(this)(cfg);
oldParse.bind(this)(cfg);
};
});