From e36d149b10b5fb1197cf6ce9ab4e6f26ec2bc076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 27 Apr 2021 11:30:53 -0400 Subject: [PATCH] Put our start and recorded times in eastern time for easier review --- pomodoro_to_harvest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index f960831..9d395b5 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -3,8 +3,8 @@ import pandas as pd timelog = pd.read_csv("timelog-titled.csv") -timelog["started"] = pd.to_datetime(timelog["started"]) -timelog["recorded"] = pd.to_datetime(timelog["recorded"]) +timelog["started"] = pd.to_datetime(timelog["started"]).dt.tz_convert("US/Eastern") +timelog["recorded"] = pd.to_datetime(timelog["recorded"]).dt.tz_convert("US/Eastern") timelog["time"] = 30 # A pomodoro started before 3am Eastern time is considered to be a continuation # of the day before, so we are, effectively, on West Coast time for determining