Ticket #7232 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Explicit separator required in date string

Reported by: anonymous Assigned to: hasienda
Priority: normal Component: WikiCalendarMacro
Severity: normal Keywords: date/time format
Cc: rjollos Trac Release: 0.11

Description (Last modified by rjollos)

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

Change History

06/11/10 08:30:23 changed by rjollos

  • cc set to hasienda.
  • summary changed from separator in date string to Explicit separator required in date string.

This ticket was incorrectly opened against the WikiCalendarMacro.

06/11/10 21:13:49 changed by hasienda

  • keywords set to date/time format.

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.

06/11/10 21:20:40 changed by rjollos

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.

08/28/10 15:53:04 changed by hasienda

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.

09/05/10 06:49:00 changed by rjollos

  • owner changed from rjollos to hasienda.
  • description changed.

12/13/10 01:47:41 changed by hasienda

  • status changed from new to closed.
  • cc changed from hasienda to rjollos.
  • resolution set to fixed.

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 .


Add/Change #7232 (Explicit separator required in date string)




Change Properties
Action