passing server date in boot and checking expiry against the server date
This commit is contained in:
parent
09a53376bb
commit
d1784cca00
@ -61,7 +61,7 @@ erpnext.startup.start = function() {
|
||||
erpnext.complete_setup.show();
|
||||
}
|
||||
if(wn.boot.expires_on && in_list(user_roles, 'System Manager')) {
|
||||
var today = dateutil.str_to_obj(dateutil.get_today());
|
||||
var today = dateutil.str_to_obj(wn.boot.server_date);
|
||||
var expires_on = dateutil.str_to_obj(wn.boot.expires_on);
|
||||
var diff = dateutil.get_diff(expires_on, today);
|
||||
if (0 <= diff && diff <= 15) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user