Ticket #6686: patch.diff
File patch.diff, 605 bytes (added by , 17 years ago) |
---|
-
django/db/backends/util.py
46 46 ############################################### 47 47 48 48 def typecast_date(s): 49 return s and datetime.date(*map(int, s.split('-'))) or None # returns None if s is null 49 try: 50 return s and datetime.date(*map(int, s.split('-'))) 51 except: 52 return None # returns None if s is null 50 53 51 54 def typecast_time(s): # does NOT store time zone information 52 55 if not s: return None