Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
None
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
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | eventing [ 14240 ] |
Fix Version/s | 6.x Doc Updates [ 15700 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |