mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
17 lines
378 B
TypeScript
17 lines
378 B
TypeScript
import { LiquidDate } from '../../src/util'
|
|
|
|
const locale = Intl.DateTimeFormat().resolvedOptions().locale
|
|
|
|
export class DateWithTimezone extends LiquidDate {
|
|
constructor (init: string, timezone: number) {
|
|
super(init, locale)
|
|
this.getTimezoneOffset = () => timezone
|
|
}
|
|
}
|
|
|
|
export class TestDate extends LiquidDate {
|
|
constructor (v: any) {
|
|
super(v, locale)
|
|
}
|
|
}
|