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.

  • Thebeardedsinglemalt@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    19 hours ago

    I fixed a 5 year old issue that the previous guy claimed was “unfixable”. Turns out it was because someone copy-pasted a value from an Outlook email…and it had a single dash in it…which outlook converted to a double dash.

    • Giloron@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      16 hours ago

      That’s why I was so confused about the AI emdash connection. MS Office has been replacing dash with emdash for 20+ years.

      • thomasloven@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        8 hours ago

        I was confused too. But now I think it’s specifically em dashes in the middle of words, isn’t it? Like copy—paste instead of copy-paste?

    • monkeyman512@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 hours ago

      I have had issues of having the same characters but in Unicode failing. But if I type it manually or paste it into Notepad++ forcing it to ASCII first, it works.