Skip to content

Commit

Permalink
refactor: update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
jungeun-cho committed Nov 25, 2020
1 parent a1363ba commit 1318406
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/example15-template-for-timegrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,11 @@
timegridCurrentTime: function(timezone) {
var templates = [];

if (timezone.dateDifference) {
if (!timezone) {
return '';
}

if (timezone.dateDifference !== 0) {
templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']<br>');
}

Expand Down

0 comments on commit 1318406

Please sign in to comment.