Skip to content

Commit 11ca8ac

Browse files
author
Jason Bazalar
committed
JS: Fix day of week to work with zero-based index
1 parent 0272ec2 commit 11ca8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
d.month = d.months[d.date.getMonth()];
6767
d.d = d.date.getDate();
6868
d.wkdys = ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'];
69-
d.dow = d.wkdys[ d.date.getDay() ];
69+
d.dow = d.wkdys[ d.date.getDay() - 1 ];
7070
d.day = (d.d > 9)? d.d : "0"+d.d;
7171
d.time = formatAMPM( d.date );
7272

0 commit comments

Comments
 (0)