koodilehto/koodilehto-site

Twitter Widget - NaN-NaN-NaN at IE8

Opened this issue · 1 comments

IE8 seems to be missing some date property we are currently using. Investigate and fix.

replace
tweet.created_at_timestamp = Date.parse(item.created_at);"
with
var d = item.created_at.split(' ');
tweet.created_at_timestamp = Date.parse(d[1]+" "+d[2]+", "+d[5]+" "+d[3]+" UTC");

in twitter widget js code to fix it