160 views

Description

OnCall reminders are not sent if system date format has been changed to a valid value that uses short string representations like yyyy-MMM-dd. GlideDateTime has problems with date formats that use string representations.

Steps to Reproduce

If property: glide.sys.date_format is set to: yyyy-MMM-dd, then on-call reminders may fail to be sent out and the following corresponding server console error log is thrown:

performing add with invalid GlideDateTime: no thrown error
Evaluator: java.lang.NullPointerException
Caused by error in Script Include: 'OnCallRemindersNG' at line 166

163:
164: // Add one hour to both start and end time to skip potential issue due to daylight saving time
165: var rotaStartPlusOneHour = new GlideDateTime(rotaStartDateTime.getDisplayValue());
==> 166: rotaStartPlusOneHour.add(3600000);
167: var fromPlusOneHour = new GlideDateTime(fromDateTime.getDisplayValue());
168: fromPlusOneHour.add(3600000);
169:

com.glide.glideobject.GlideDateTime.add(GlideDateTime.java:1144)
sun.reflect.GeneratedMethodAccessor931.invoke(Unknown Source)

Workaround

Either set the following property:glide.sys.date_format to: yyyy-MM-dd or import the following two script includes: FormattedScheduleReport and OnCallRemindersNG.


Related Problem: PRB660091

Seen In

Fuji Patch 11
Fuji Patch 9

Fixed In

Helsinki

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-06-28 10:15:49
Published:2016-03-04