You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Below is the code in Recur related to UNTIL
} else if (UNTIL.equals(token)) {
final String untilString = nextToken(tokens, token);
if (untilString != null && untilString.contains("T")) {
until = new DateTime(untilString);
// UNTIL must be specified in UTC time..
((DateTime) until).setUtc(true);
} else {
until = new Date(untilString);
}
It sets the DateTime to UTC always. However, RFC5545 says
The value of the UNTIL rule part MUST have the same
value type as the "DTSTART" property. Furthermore, if the
"DTSTART" property is specified as a date with local time, then
the UNTIL rule part MUST also be specified as a date with local
time. If the "DTSTART" property is specified as a date with UTC
time or a date with local time and time zone reference, then the
UNTIL rule part MUST be specified as a date with UTC time.
So if the DTSTART has no timezone (floating time) the value should NOT be UTC
If I'm right, this seems to add a lot of complication as we need the DTSTART to determine the correct type for UNTIL.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
OS: [e.g. Windows, Linux, Android]
Java Version [e.g. 7, 8, 9]
iCal4j Version
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
Below is the code in Recur related to UNTIL
It sets the DateTime to UTC always. However, RFC5545 says
The value of the UNTIL rule part MUST have the same
value type as the "DTSTART" property. Furthermore, if the
"DTSTART" property is specified as a date with local time, then
the UNTIL rule part MUST also be specified as a date with local
time. If the "DTSTART" property is specified as a date with UTC
time or a date with local time and time zone reference, then the
UNTIL rule part MUST be specified as a date with UTC time.
So if the DTSTART has no timezone (floating time) the value should NOT be UTC
If I'm right, this seems to add a lot of complication as we need the DTSTART to determine the correct type for UNTIL.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: