We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
dtstart
rule.toString()
rrule
RRule.fromString()
Validation fails in untilStringToDate.
const new_rule = new RRule({ dtstart: new Date(990, 0, 1) }); const rule_string = new_rule.toString(); // this works // toString() => "DTSTART=9900101T060000Z" const rule = RRule.fromString(rule_string); // errors // fromString() => Error: Invalid UNTIL value: 9900101T060000Z
See runkit example .
The text was updated successfully, but these errors were encountered:
new_rule.toString() string is stripping out the leading 0 from the output. It is returning 9900101T060000Z instead of 09900101T060000Z
new_rule.toString()
9900101T060000Z
09900101T060000Z
toString() seems to be doing the right thing. new Date(new Date(990, 0, 1).getUTCFullYear() will return 990
toString()
new Date(new Date(990, 0, 1).getUTCFullYear()
Sorry, something went wrong.
fromString() validation handles 3-digit years properly. Fixes jkbrzt#202
c1289ba
No branches or pull requests
Steps to reproduce:
dtstart
date 01/01/0990rule.toString()
rrule
usingRRule.fromString()
Validation fails in untilStringToDate.
See runkit example .
The text was updated successfully, but these errors were encountered: