4

i have this element :

<time class="timeAgo" datetime="2011-07-30T13:00:00-03:00">1hour ago</time>

after ~1 minute i would like to update the string inside to like '1hour and 1 minute ago', so the problem is : I cant parse the datetime attribute in internet explorer. And if i cant parse this datetime, i cant compare it to current time to make the time diff i want.

var testTime = new Date( $(".timeAgo").attr('datetime') );

the line above didnt work in IE8.

any ideas to workaround this ?

0

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.