Getting correct timezone information in embedded timelines

embeddedtimeline

#1

Hi am displaying twitter feed on my website but the time a tweet was posted is 2 hours behind. How do configure that so that it matches with my country timezone South Africa

<a class="twitter-timeline" href="https://twitter.com/juniornobela" data-tweet-limit="2" data-aria-polite="assertive" data-widget-id="737522170281136128">
    <br />
    Tweets by @juniornobela</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

#2

Are you also in the South Africa timezone when you test this? You should get this automatically without doing any work.

Embedded timelines will display the time from the user’s perspective i.e. the time will rendered based on user’s browser’s time zone. If your website is seen by a user in South Africa, time shown will be adjusted to their time zone automatically.


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.