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

          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