TGAndradeS / twitterjs

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

Times between noon and 1 PM display 'AM' #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send a tweet between noon and 1 PM
2. Wait 48+ hours
3. Run script and note time

What is the expected output? What do you see instead?
Time should be e.g. "12:33 PM Mar 19th"
Instead, script reports time as "12:33 AM Mar 19th"

What version of the product are you using? On what operating system?
twitterjs-1[1].12.2-release.zip

Please provide any additional information below.
Something like this might get the job done.  :-)

if (hour == 0) {
    hour = 12;
} else if (hour == 12) {
    ampm = 'PM';
} else if (hour > 12) {
    hour -= 12;
    ampm = 'PM';
}

Original issue reported on code.google.com by ic3_n...@yahoo.com on 19 May 2009 at 5:05

GoogleCodeExporter commented 8 years ago
Fixed in 1.13.1

Original comment by remysh...@gmail.com on 25 Aug 2009 at 8:13