From 9725d6fde493ea229b1785da5976b611fe3d2279 Mon Sep 17 00:00:00 2001 From: Michael Prager Date: Mon, 16 Jan 2012 00:47:53 +0100 Subject: [PATCH] improved weekday detection --- comingNext/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2