Skip to content

Commit

Permalink
try time fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezwang committed Nov 3, 2019
1 parent 7ba4233 commit 390d211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion penn/wharton.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def switch_format(self, gsr):
del entry["room_number"]
start_time_str = entry["start_time"]
end_time = datetime.datetime.strptime(start_time_str[:-6], '%Y-%m-%dT%H:%M:%S') + datetime.timedelta(minutes=30)
end_time_str = end_time.strftime("%Y-%m-%dT%H:%M:%S") + "-{}".format(self.get_dst_gmt_timezone())
end_time_str = end_time.strftime("%Y-%m-%dT%H:%M:%S") + start_time_str[-6:]
time = {
"available": not entry["reserved"],
"start": entry["start_time"],
Expand Down

0 comments on commit 390d211

Please sign in to comment.