-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
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
DTSTAMP should be in UTC without TimeZone property #89
Comments
(Apologies for the delayed response; I have been on a long holiday out of the country.) Looks like you have a concrete proposal. Can you open a pull request with these changes, making sure the existing unit tests pass? Once Khalid merges #87, all tests should be green. |
Hi everyone I ran into this issue as well, so I've attempted a fix. Let me know if there's anything I can do to help get this in. Cheers. |
Hi Jack
Problem is that TZID is now being serialized just without value. This is not solving the problem. The output is now:
Which is is validated as Therefore the method should remove the previsously* added TZID like so:
Your test I've updated your test in a rather clumsy way but it passes.
I'll create a merge request for this - with your parts in it if you're ok with it. *Initialization of DateTime: |
I reviewed the PRs and they LGTM. It would be nice to have an CI build going which I can setup on AppVeyor if you would like at some point. #86 |
@kdaveid - Can this be closed with the merger of your PRs? |
Thanks guys, really appreciated :) |
@rianjs Sure Rian, go ahead and close it. |
As of RFC
4.8.7.2 Date/Time Stamp
here or here the DTSTAMP property should be of UTC but without the TimeZone property.Unfortunately (as I see it) we have no influence on this particular DateTime property during serialization.
Or do you have any ideas how to strip the TZID when serialize this property?
EnsureProperties() method
Additionally and in this matter I propose the followin code change for the default value of DTSTAMP:
This way the CalDateTime() variable has the property
IsUniversalTime
settrue
.Original:
From here.
The problem is we get the followin output when serializing:
With ical-validator we get
Parser error at line 8: Cannot set timezone for UTC properties
.When removed we have no errors.
The text was updated successfully, but these errors were encountered: