Papanik / twitterjs

Automatically exported from code.google.com/p/twitterjs
MIT License
0 stars 0 forks source link

Time of posting incorrect #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Twitter entries on twitter.com show correct time of posting
2. Resolved list embedded on my page off by 1 day + 5 hours
3.

What is the expected output? What do you see instead?
Should see same time of posting as that on Twitter.  I see an offset of a
whole date plus 5 hours.  See
http://www.hometeamsonline.com/teams/?u=LSTB8U&s=baseball&t=c

What version of the product are you using? On what operating system?
http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js

Please provide any additional information below.

Original issue reported on code.google.com by michael....@gmail.com on 10 Nov 2009 at 3:58

GoogleCodeExporter commented 8 years ago
Yeah I'm getting this too. For now I will just remove %time% from my template...

Original comment by rimuatki...@gmail.com on 2 Dec 2009 at 3:54

GoogleCodeExporter commented 8 years ago
Same here: http://blog.sixteenseven.com - looks like a variable for server 
offset
time might be helpful here (meaning your server is hosted in a different 
timezone
than where you are tweeting from).

Original comment by paularterburn on 28 Feb 2010 at 7:47

GoogleCodeExporter commented 8 years ago
Same issue here. I would love if this worked correctly.

I see an unofficial explanation here
(http://remysharp.com/2007/05/18/add-twitter-to-your-blog-step-by-step/comment-p
age-15/#allcomments)
but this seems like a necessary update to the official code.

Original comment by mnbusw...@gmail.com on 9 Mar 2010 at 6:39

GoogleCodeExporter commented 8 years ago
Got it! This is such a small fix I won't bother to submit a patch...

Around line 318, find this:

parsed_date = Date.parse(values[1] + " " + values[2] + ", " + values[5] + " " + 
values[3]),

Change it to this:

parsed_date = Date.parse(values[1] + " " + values[2] + ", " + values[5] + " " + 
values[3] + " UTC"), 

Done!

Notice the dates on Twitter's site will display in pacific time unless you are 
logged 
in. Once you log in, the dates should match up :)

You can grab my unofficial version of the script (including this fix) from 
'issue 
10'...

http://code.google.com/p/twitterjs/issues/detail?id=10

Original comment by nick.m...@gmail.com on 22 Mar 2010 at 12:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for taking this on Nick (?) 

I've downloaded and am now linking to your version of the JS. The time is now 
correct
(GREAT!) but now the format for the day has changed. For example, now the date 
is '4
days ago' as opposed to 'Mar 20'. 

Also, now the date is now a link (wasn't before). I'd rather it not be a link...

Any insight?

http://www.sisuhome.com

Original comment by mnbusw...@gmail.com on 25 Mar 2010 at 7:37

GoogleCodeExporter commented 8 years ago
No problem :)

Modified 'relativeTime' option; you can how old a tweet must be (in hours) 
before an 
absolute date is shown. This now defaults to 48.

Changed the default template to remove the link to the user's page from the 
displayed 
time, but added an option 'linkTime' to re-enable this feature. 

Check out issue 10 ...

Original comment by nick.m...@gmail.com on 25 Mar 2010 at 6:33

GoogleCodeExporter commented 8 years ago
Will this fix be added to the hosted version sometime?

Original comment by iam.matt...@gmail.com on 27 Mar 2010 at 12:57