Replace %Y with %y in deadlines to fix the generated iCal#319
Replace %Y with %y in deadlines to fix the generated iCal#319Enrico204 wants to merge 1 commit intosec-deadlines:masterfrom
Conversation
|
To be honest, @clementfung I think that we should fix the template itself to allow (if we want to proceed and fix the template, we can close this pull request and open a new one) |
|
@Enrico204 Thank you for looking into this and sorry for the slow response! To support rolling deadlines, we currently use '%Y' to designate the previous year, and '%y' to designate the current year: https://github.com/sec-deadlines/sec-deadlines.github.io/blob/master/static/js/main.js#L24 So accepting this change would be a breaking change for those deadlines. I also don't have much experience with generating and testing iCal, and I could take some time to look into that further (no promises on when that would be...). So I think the options are:
Option 2 is honestly not that bad, since we already have to update the "year" field every year anyways. |
|
Oh, I missed the difference between I would suggest to fix the iCal template (option 3). The placeholder might be useful in some cases (like the one modified in this PR), and it doesn't seem to complex to support. I suspect that defining a new variable and a new replacement should suffice. Something like But I am quite busy right now, I can't try it :-( |
|
Closed as fixed by #324 |
This pull request replaces
%Ywith%yin deadlines to fix the generated iCal, so that it can be imported in Google Calendar and other tools. Fixes #162 and supersedes #231Future pull requests should pay attention to not have
%Y(uppercasee Y) in the deadline, as only%yis allowed