Permalink
Browse files

Fixed issue with Date.getTime() that caused Glog to display weekdays …

…one day off
  • Loading branch information...
Guy Halford-Thompson
Guy Halford-Thompson committed Feb 18, 2012
1 parent 5d56f01 commit 6d175b7a6429f751485ad29fdc31dd5a7486b99f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/glog.js
View
@@ -350,7 +350,7 @@ Glog.formatDate = function(date) {
months = ['January' , 'Febuary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
str;
- str = [days[date.getDay()], ', ', date.getDate(), ' ', months[date.getMonth()], ', ', date.getFullYear()].join('');
+ str = [days[date.getDay()-1], ', ', date.getDate(), ' ', months[date.getMonth()], ', ', date.getFullYear()].join('');
return str;

0 comments on commit 6d175b7

Please sign in to comment.