Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-5466

Bug in eventing example "Document Expiry and Archival"

    XMLWordPrintable

Details

    Description

      After testing the example code for Document Expiry and Archival, I noticed a bug.

      The assertion " var expiry = new Date(meta.expiration);" gives a date in January 1970. This is the case since javascript expects an epoch value in ms, while meta.expiration expresses it in second. Replacing the line with
      " var expiry = new Date(meta.expiration*1000);" solves the problem.

      Reporter: Filip Jansson
      E-mail: filipjansson0@gmail.com

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          docsite-collector Docs Site Collector created issue -
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Field Original Value New Value
          Component/s eventing [ 14240 ]
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Fix Version/s 6.x Doc Updates [ 15700 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          amarantha.kulkarni Amarantha Kulkarni (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            amarantha.kulkarni Amarantha Kulkarni (Inactive)
            docsite-collector Docs Site Collector
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty