rrule: Using TZID without Luxon available is unsupported

1.8k views Asked by At

I have a very simple project, using the rrule package:

npm init -f
npm i rrule

index.js file:

import { RRule, RRuleSet, rrulestr } from 'rrule';

const rule = RRule.fromString(
  "DTSTART;TZID=America/Denver:20181101T190000;\n"
  + "RRULE:FREQ=WEEKLY;BYDAY=MO,WE,TH;INTERVAL=1;COUNT=3"
)
rule.all();

Yet this gives the following message, three times:

Using TZID without Luxon available is unsupported. Returned times are in UTC, not the requested time zone

Why doesn't this work? I can see luxon is in the dependencies of the node_modules/luxon package. I've tried installing luxon into my own package too (npm i luxon), but with no success. What am I missing?

1

There are 1 answers

1
denyo910 On BEST ANSWER

Seems like the issue started with version 2.6.6. A temporary solution would be to install a version that works. I did npm i [email protected].