Modify

Opened 18 years ago

Closed 17 years ago

#1406 closed defect (fixed)

_get_date_range() fix, returns wrong thing if passed year and month only

Reported by: betatim+tblog@… Owned by: John Hampton
Priority: normal Component: TracBlogPlugin
Severity: normal Keywords:
Cc: betatim+tblog@… Trac Release: 0.10

Description

If you pass _get_date_range() in web_ui.py only a year and a month it returns nonsensical start,end dates.

This is a problem when used in BlogShow(year=2006,month=3)? and so on.

Attached a patch

Attachments (2)

web_ui.py.2.patch (749 bytes) - added by betatim 18 years ago.
web_ui.py.patch (1.0 KB) - added by betatim 18 years ago.
sorry for being so dim with the attchments

Download all attachments as: .zip

Change History (5)

Changed 18 years ago by betatim

Attachment: web_ui.py.2.patch added

Changed 18 years ago by betatim

Attachment: web_ui.py.patch added

sorry for being so dim with the attchments

comment:1 Changed 17 years ago by John Hampton

Status: newassigned

Thanks for the patch. I'll take a look at it this weekend.

comment:2 Changed 17 years ago by John Hampton

I was just looking at the patch, and it seems that I basically applied the patch when fixing #1060 in [1913]

Can you try updating to the latest svn co of the 0.10 code and let me know if the bug still exists? Thanks

comment:3 Changed 17 years ago by John Hampton

Resolution: fixed
Status: assignedclosed

(In [2397])

  • Fixed bug where specifying year and month would return a range of one day instead of the expected month
  • Thanks for the testing Muelli
  • Fixes #1406

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.