Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 35: | Rivi 35: | ||
memo.season = i18n[memo.obscode]['season']; | memo.season = i18n[memo.obscode]['season']; | ||
− | if ( memo.season == 'summer' || | + | if ( memo.season == 'summer' || now.getMonth() > 7 ) { |
− | memo.curSeason = | + | memo.curSeason = now.getFullYear(); |
} else { | } else { | ||
− | memo.curSeason = | + | memo.curSeason = now.getFullYear()-1; |
} | } | ||