cc-4105: Tweaked php method to have more consistent return values

This commit is contained in:
Rudi Grinberg 2012-07-17 11:20:58 -04:00
parent 68a218d277
commit 98b4e3c47b
2 changed files with 22 additions and 9 deletions

View file

@ -42,7 +42,7 @@ def getDateTimeObj(time):
# - perhaps validate the input before doing dangerous casts?
# - rename this function to follow the standard convention
# - rename time to something else so that the module name does not get
# shadowed
# shadowed
# - add docstring to document all behaviour of this function
timeinfo = time.split(" ")
date = [ int(x) for x in timeinfo[0].split("-") ]