Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #759 (closed defect: fixed)

Opened 12 years ago

Last modified 10 years ago

[PATCH] Patch to add jsonify date method

Reported by: steve@… Owned by: anonymous
Priority: normal Milestone: 0.9a5
Component: TurboGears Version: 0.9a4
Severity: normal Keywords: jsonify date
Cc:

Description

This small patch adds a method to jsonify datetime.date objects. jsonify will already handle datetime.datetime but complains of no applicable methods on plain dates.

Attachments

jsonify-date-0.9a4.patch Download (507 bytes) - added by anonymous 12 years ago.
Patch to add datetime.date method to jsonify

Change History

Changed 12 years ago by anonymous

Patch to add datetime.date method to jsonify

comment:1 Changed 12 years ago by plewis

  • Summary changed from Patch to add jsonify date method to [PATCH] Patch to add jsonify date method

comment:2 Changed 12 years ago by kevin

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

good suggestion. Rather than adding another method, I've just added an "or" in the when of the existing datetime.datetime handler.

comment:3 Changed 12 years ago by steve@…

As long as it's fixed, I'm happy. :-)

It's been nagging me since October.

Note: See TracTickets for help on using tickets.