Opened 14 years ago
Closed 14 years ago
#7232 closed defect (fixed)
Explicit separator required in date string
Reported by: | anonymous | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | WikiCalendarMacro |
Severity: | normal | Keywords: | date/time format |
Cc: | Ryan J Ollos | Trac Release: | 0.11 |
Description (last modified by )
We had to set the seperator 'sep' in wikiticketcalendar/macro.py hard coded to "/" to make it work
duedate = { 'dmy': '%(dd)s%(sep)s%(mm)s%(sep)s%(yy)s', 'mdy': '%(mm)s%(sep)s%(dd)s%(sep)s%(yy)s', 'ymd': '%(yy)s%(sep)s%(mm)s%(sep)s%(dd)s' }.get(self.date_format, '%(yy)s%(sep)s%(mm)s%(sep)s%(dd)s') % { 'dd': dayString, 'mm': monthString, 'yy': yearString, 'sep': "/" }
Attachments (0)
Change History (6)
comment:1 Changed 14 years ago by
Cc: | Steffen Hoffmann added; anonymous removed |
---|---|
Summary: | separator in date string → Explicit separator required in date string |
comment:2 Changed 14 years ago by
Keywords: | date/time format added |
---|
I'll have a look at it as soon as time permits. Thanks for taking care and contributing both, problem and a possible solution.
I'll just leave it here, as the maintainer did not feel the urge to move nor to close it right away.
If you subscribe with your email address and a short comment, I'll know, it's time to move it over to the pile of issues for WikiTicketCalendarMacro, where it belongs indeed.
comment:3 Changed 14 years ago by
Thanks for the note hasienda. I had meant to move it over to WikiTicketCalendarMacro, but if you want to leave it here, that's fine with me. My job (startup company at which I have many roles) has not allowed me much time to focus on improving Trac lately, but I hope to have some time to contribute to WikiCalendarMacro and WikiTicketCalendarMacro within the next few months.
comment:4 Changed 14 years ago by
There has been done considerably efforts to improve the 'sister' plugin WikiTicketCalendarMacro.
With regards to #7564 I'd appreciate, if you could test your issue with the current version of WikiTicketCalendarMacro as well and report back here. I can't make promises, but this might be a big step towards solving this issue. Thank you for your patience and for helping us with improvements.
It might be relevant, that I've removed that dependency of (WikiTicketCalendarMacro) getting self.date_format
from DateFieldPlugin's section in trac.ini
, because it was both, not easy to spot and hard to fulfill without installing DateFieldPlugin itself - all in all a ugly thing.
comment:5 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Ryan J Ollos to Steffen Hoffmann |
comment:6 Changed 14 years ago by
Cc: | Ryan J Ollos added; Steffen Hoffmann removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I thought I had it moved over too, anyway.
As mentioned before, the issue reported here has been resolved in changeset [8270] for WikiTicketCalendarMacro trunk
branch and has been backported to the 0.11 branch (single file plugin) with [8314] released as WikiTicketCalendarMacro v0.8.5 .
This ticket was incorrectly opened against the WikiCalendarMacro.