1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-01-06 19:37:54 -05:00

v0.5.7 - Sonar Cleanup + New Activities

This commit is contained in:
Ean Milligan (Bastion)
2022-08-27 02:31:23 -04:00
parent 5f4c3b10b1
commit 04ebce7d01
7 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,7 @@
export const LFGActivities = {
'Destiny 2': {
'Raids': {
'King\'s Fall': 6,
'Vow of the Disciple': 6,
'Vault of Glass': 6,
'Deep Stone Crypt': 6,
@ -32,6 +33,8 @@ export const LFGActivities = {
}, */
'Nightfall': 3,
'Miscellaneous': {
'Ketchrash': 6,
'Expedition': 3,
'Weekly Witch Queen Campaign Mission': 3,
'Wellspring': 6,
'Dares of Eternity': 6,

View File

@ -11,10 +11,10 @@ export const determineTZ = (tz: string, userOverride = false): [string, boolean]
const jul = new Date(today.getFullYear(), 6, 1);
if (today.getTimezoneOffset() < Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset())) {
if (tz.includes('S')) overrode = true;
tz = `${tz.substr(0, 1)}DT`;
tz = `${tz.substring(0, 1)}DT`;
} else {
if (tz.includes('D')) overrode = true;
tz = `${tz.substr(0, 1)}ST`;
tz = `${tz.substring(0, 1)}ST`;
}
}

View File

@ -1,7 +1,7 @@
export const jsonParseBig = (input: string) => {
return JSON.parse(input, (_key, value) => {
if (typeof value === 'string' && /^\d+n$/.test(value)) {
return BigInt(value.substr(0, value.length - 1));
return BigInt(value.substring(0, value.length - 1));
}
return value;
});