Modify

Opened 7 years ago

Closed 7 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: pacopablo
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 7 years ago.
web_ui.py.patch (1.0 KB) - added by betatim 7 years ago.
sorry for being so dim with the attchments

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by betatim

Changed 7 years ago by betatim

sorry for being so dim with the attchments

comment:1 Changed 7 years ago by pacopablo

  • Status changed from new to assigned

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

comment:2 Changed 7 years ago by pacopablo

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 7 years ago by pacopablo

  • Resolution set to fixed
  • Status changed from assigned to closed

(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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from pacopablo. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.