Skip to content

Commit

Permalink
Convert to int
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanReiter committed May 4, 2011
1 parent f74f9cf commit 4a388ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexibledatefield/flexibledate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _cmperror(x, y):
class flexibledate(object):
def __init__(self, value):
try:
self.value = value.strftime('%Y%m%d')
self.value = int(value.strftime('%Y%m%d'))
except AttributeError:
self.value = int(value)
if self.value < _MIN_VALUE or self.value > _MAX_VALUE:
Expand Down

0 comments on commit 4a388ea

Please sign in to comment.