DateTime Function: withMillis does not set the milliseconds correctly on Date entities. Instead, it is setting nanoseconds.

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      When using .withMillis() on a Date entity in Automation, it will always set the milliseconds

      Steps to Reproduce

      1. Use a date function like now and then set the milliseconds with withMillis before logging the value with a Log Action.

      Expected Results

      The milliseconds are set correctly:

      {{now.withMillis(500)}}
      
      2024-10-20T12:00:00.5+0000
      

      Actual Results

      The milliseconds are set incorrectly:

      {{now.withMillis(500)}}
      
      2024-10-20T12:00:00.0+0000
      

      Workaround

      Use Nanoseconds instead:

      {{now.withMillis(500000000)}}
      
      2024-10-20T12:00:00.5+0000
      

            Assignee:
            Eshaa Sood
            Reporter:
            Payden Pringle (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: