PoshBot icon indicating copy to clipboard operation
PoshBot copied to clipboard

Scheduled Task not respecting Daylight Savings (DST)

Open clee1107 opened this issue 4 years ago • 2 comments

Have two (2) scheduled actions. As of Sunday (Nov. 7) they are both triggering 1 hr earlier than they should.

Expected Behavior

Tasks should trigger at 5:30AM and 11AM

Current Behavior

Tasks are trigger at 4:30AM and 10AM

Possible Solution

Steps to Reproduce (for bugs)

  1. Scheduled task set prior to DST
  2. DST Occurs
  3. Task triggers +/- hour depending on DST action

Context

Running Set-Schedule appears to be a work around.

clee1107 avatar Nov 09 '21 17:11 clee1107

Thanks @clee1107. Probably a bug with how PoshBot calculates the next schedule run time based on the interval, the current date, and the last time it ran.

Have you tried restarting PoshBot, and is the schedule still off by an hour?

devblackops avatar Nov 10 '21 07:11 devblackops

@devblackops Tried to restart service no change.

Agree looks like interval issue as once used Set-Schedule command fixed them. Guessing reset the interval to account for the hour change.

clee1107 avatar Nov 10 '21 11:11 clee1107