Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7146

Fix "Transactions in Applied State" dateThreshold example

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual, Server

    Description

      The second example under the Regarding Multiple Applications header has a bug when getting the dateThreshold.
      When new Date() returns a date which has a minutes value less than 30, setMinutes() is called with a negative value and as a result the date is invalidated.

      The proper way to get dateThreshold is as follows:

      var dateThreshold = new Date();
      dateThreshold = new Date(dateThreshold.getTime() - 30*60*1000)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago