diff --git a/app/mifit_to_influxdb.py b/app/mifit_to_influxdb.py
--- a/app/mifit_to_influxdb.py
+++ b/app/mifit_to_influxdb.py
#
@@ -266,11 +266,8 @@ def get_band_data(auth_info):
#
# If day_ts is < midnight we want to set the timestamp to be 23:59:59
#
# on that day. If not, then we use the current timestamp.
#
- ts = day_ts.strftime('%s')
#
+ ts = datetime.datetime.combine(day_ts, datetime.datetime.max.time()).strftime('%s')