pnreddysvu / google-rfc-2445

Automatically exported from code.google.com/p/google-rfc-2445
Apache License 2.0
0 stars 0 forks source link

UNTIL date should be inclusive #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Iterate over RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20110121
with start java.util.Date set to Mon Jan 17 11:00:00 CET 2011

What is the expected output? What do you see instead?
Expected output:
    1: Mon Jan 17 11:00:00 CET 2011
    2: Tue Jan 18 11:00:00 CET 2011
    3: Wed Jan 19 11:00:00 CET 2011
    4: Thu Jan 20 11:00:00 CET 2011
    5: Fri Jan 21 11:00:00 CET 2011
Total: 5 instances
Actual output:
    1: Mon Jan 17 11:00:00 CET 2011
    2: Tue Jan 18 11:00:00 CET 2011
    3: Wed Jan 19 11:00:00 CET 2011
    4: Thu Jan 20 11:00:00 CET 2011
Total: 4 instances

What version of the product are you using? On what operating system?
1.0.31, Windows XP, rfc2445-no-joda.jar

Please provide any additional information below.

Original issue reported on code.google.com by lars.a.f...@gmail.com on 17 Jan 2011 at 1:49

GoogleCodeExporter commented 9 years ago
It is not valid to use a date-time DTSTART with a date UNTIL.

If DTSTART is 20110117T110000 then your UNTIL date must have a time associated 
with it.
Use UNTIL=20110117T110000 and I think you will find that it is properly 
inclusive.

Original comment by mikesamuel@gmail.com on 17 Jan 2011 at 5:23

GoogleCodeExporter commented 9 years ago
Yes, you are right.
The documentation was not very clear, but the examples were.
By the way, Outlook treats UNTIL dates inclusive, and that fooled me.

Original comment by lars.a.f...@gmail.com on 19 Jan 2011 at 12:35