Ticket #4487: timewidget.patch

File timewidget.patch, 521 bytes (added by yi.codeplayer at gmail dot com, 17 years ago)

The Patch.

  • django/newforms/widgets.py

     
    372372
    373373    def decompress(self, value):
    374374        if value:
    375             return [value.date(), value.time()]
     375            import datetime
     376            t = value.time()
     377            the_time = datetime.time(t.hour,t.minute,t.second)
     378            return [value.date(), the_time]
    376379        return [None, None]
Back to Top