💵 Add ability to accept payments (#722)

This commit is contained in:
Luke Vella 2023-07-05 14:46:30 +01:00 committed by GitHub
parent 1c7c8c7678
commit 2ccf705a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 2021 additions and 604 deletions

View file

@ -15,19 +15,3 @@ export const getTimeZoneAbbreviation = (date: Date, timeZone: string) => {
const abbrev = spaceTimeDate.isDST() ? dstAbbrev : standardAbbrev;
return abbrev;
};
export const printDate = (date: Date, duration: number, timeZone?: string) => {
if (duration === 0) {
return dayjs(date).format("LL");
} else if (timeZone) {
return `${dayjs(date).tz(timeZone).format("LLL")} - ${dayjs(date)
.add(duration, "minutes")
.tz(timeZone)
.format("LT")} ${getTimeZoneAbbreviation(date, timeZone)}`;
} else {
return `${dayjs(date).utc().format("LLL")} - ${dayjs(date)
.utc()
.add(duration, "minutes")
.format("LT")}`;
}
};