cc-4105: Tweaked php method to have more consistent return values
This commit is contained in:
parent
68a218d277
commit
98b4e3c47b
2 changed files with 22 additions and 9 deletions
|
@ -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("-") ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue