Skip to content

Commit

Permalink
Merge pull request #142 from castelao/master
Browse files Browse the repository at this point in the history
BUGFIX #141, missing a round to define the seconds.
  • Loading branch information
s-good committed Jan 27, 2016
2 parents 07fc986 + 28210f4 commit a4bd58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cotede_qc/cotede_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_datetime(self):
hours = int(time)
minutesf = (time - hours) * 60
minutes = int(minutesf)
seconds = int((minutesf - minutes) * 60)
seconds = int(round((minutesf - minutes) * 60))

self.attributes['datetime'] = datetime.datetime(year, month, day, hours, minutes, seconds)

Expand Down

0 comments on commit a4bd58f

Please sign in to comment.