criblpacks/cribl-palo-alto-networks

Allow use of timezone names

bdalpe opened this issue · 2 comments

Allow use of "America/Chicago" based time zone definitions in the lookup file instead of just static offsets like -5. (From @FusionFC)

I think this is possible with the toLocaleString function.

Even better... https://docs.cribl.io/logstream/cribl-reference/#time

C.Time.adjustTZ(epochTime: number, tzTo: string, tzFrom?: string): number

e.g. C.Time.adjustTZ(_time, 'UTC', 'America/Chicago')