Skip to content

Commit 8a5060d

Browse files
committed
fixing timezone issue that happens with reminders and daylight savings
1 parent 6d9f2c1 commit 8a5060d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wall_e/extensions/reminders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ async def remindmein(self, ctx, *args):
184184
# reminder_obj.get_countdown(current_time)
185185
current_time = pstdatetime(
186186
year=current_time.year, month=current_time.month, day=current_time.day, hour=current_time.hour,
187-
minute=current_time.minute, second=current_time.second, tzinfo=user_specified_timezone
187+
minute=current_time.minute, second=current_time.second # , tzinfo=user_specified_timezone commenting this
188+
# out cause it seems to cause an issue when there is daylight savings?
188189
)
189190
reminder_date, parse_status = parsedatetime.Calendar().parseDT(
190191
datetimeString=parsed_time,

0 commit comments

Comments
 (0)