Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Update end date for disabling device
Browse files Browse the repository at this point in the history
Signed-off-by: Joran Siu <[email protected]>
  • Loading branch information
joransiu committed Oct 3, 2018
1 parent 56563fc commit 8004473
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@

_process.setupRawDebug();

//Prevent bootstrap if z/OS Trial has expired
// Prevent bootstrap if z/OS Trial has expired
var today = new Date();
var trialEnd = new Date(2018, 11, 31);
if ((trialEnd.getDay() == today.getDay() &&
trialEnd.getYear() == today.getYear() &&
trialEnd.getMonth() == today.getMonth()) ||
(today.getYear() > trialEnd.getYear()))
throw new Error("The IBM SDK for Node.js - z/OS Trial expired on Dec 31st 2018");

// Set trialEnd to be July 1, 2019.
// Note: monthIndex is treated by Date() as starting from 0.
var trialEnd = new Date(2019, 6, 1);
if (today.getTime() >= trialEnd.getTime())
throw new Error("The IBM SDK for Node.js - z/OS Trial expired on June 30, 2019.");

// Ensure setURLConstructor() is called before the native
// URL::ToObject() method is used.
Expand Down

0 comments on commit 8004473

Please sign in to comment.