Removing logger from dayjs wrapper

This commit is contained in:
Collin Duncan 2023-02-10 14:44:52 +01:00
parent fb817610e6
commit 763d8b3833
No known key found for this signature in database

View file

@ -3,7 +3,6 @@ import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
import utc from 'dayjs/plugin/utc'
import timezone from 'dayjs/plugin/timezone'
import 'dayjs/locale/nl'
import { asyncLocalStorage } from './logger'
dayjs.extend(isSameOrBefore)
dayjs.extend(utc)
@ -15,7 +14,6 @@ dayjs.tz.setDefault('Europe/Amsterdam')
const dayjsTz = (
date?: string | number | Date | dayjs.Dayjs | null | undefined
) => {
asyncLocalStorage.getStore()?.debug(`<dayjs> timezoning ${date}`)
return dayjs(date).tz()
}