A while back I was developing a workflow scheduler. However the run duration kept coming back negative. The runs kept finishing like 15 seconds before they started. Eventually I figured out why; the company had configured a policy to use their custom NTP server, but it was 16.7 seconds off. So my Windows laptop’s time was in the future, but the WSL VM (which ran the program) used another NTP server and was correct. In the end I just added a bodge that made the program request the time from an external server on startup to calculate an offset.

  • Fargeol@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    3 hours ago

    I found an issue in a software used by government employees.
    A request would fail if the server and the client had different years in their system time which could happen if they were located in different time zones.
    After a few calculations I asked: “Hey, what are the chances a government employee would do this important task between 6pm and midnight on December 31st?”
    We decided not to prioritize the issue.