poshbotio / PoshBot

Powershell-based bot framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scheduled Task not respecting Daylight Savings (DST)

clee1107 opened this issue · 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.

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 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.