diff --git a/application/views/mobile_first/ch-weather-forecast.php b/application/views/mobile_first/ch-weather-forecast.php index 745a92eb..bb6ee99f 100644 --- a/application/views/mobile_first/ch-weather-forecast.php +++ b/application/views/mobile_first/ch-weather-forecast.php @@ -88,9 +88,10 @@ // https://openweathermap.org/forecast5 var cityId = window.ch_forecast_city.id; var weekMap = new Array("SUN.", "MON.", "TUE.", "WED.", "THU.", "FRI.", "SAT."); +var monthMap = new Array("Jan.", "Feb.", "Mar.", "Apr.", "May.", "Jun.", "Jul.", "Aug.", "Sept.", "Oct.", "Nov.", "Dec."); function formatDate(date) { - return (date.getMonth() + 1) + '.' + date.getDate(); + return monthMap[(date.getMonth())] + date.getDate() + '.'; } function formatWeek(date) { return weekMap[date.getDay()];