From: Michael Prager Date: Sun, 15 Jan 2012 23:47:53 +0000 (+0100) Subject: improved weekday detection X-Git-Url: https://code.delx.au/comingnext/commitdiff_plain/9725d6fde493ea229b1785da5976b611fe3d2279?ds=sidebyside improved weekday detection --- diff --git a/comingNext/index.html b/comingNext/index.html index 7a86723..9502668 100644 --- a/comingNext/index.html +++ b/comingNext/index.html @@ -527,7 +527,7 @@ function parseDate(dateString) function getWeekdayLocalized(date) { var localizedString = date.toLocaleDateString(); - if (localizedString.match(/\d\d.\d\d.\d\d(\d\d)?/)) { + if (localizedString.indexOf(",") == -1) { return weekdays_translated[date.getDay()]; } else return localizedString.split(',')[0];