Module talk:Cite Web

Timestamp Error
After this edit, that page is categorized as using invalid arguments due to a date mismatch. However, the date supplied is correct. Looking at the module code, it looks like the timestamp it derived was supposed to match  and not be returned. But looking at how the timestamp is derived, this seems to be impossible for any tweet id >2^32, which the tweet in question has. Not really sure how to fix this beyond a slight modification to return nil if the timestamp is less than. It's a rather low-quality fix but from what I can see, this should cover all tweets prior to November 4, 2010 while being incredibly unlikely to affect any tweets on that date. 10:02, 12 February 2023 (UTC)


 * Feel free to patch in that fix. I'll be honest: I took the code straight from Wikipedia and didn't bother checking for correctness. There's no pride in laziness/ignorance of course but there's only so much time in a day...
 * Thank you for taking the time to look into this. 🙂 PhantomCaleb (talk) 14:47, 12 February 2023 (UTC)


 * OK, added the patch. There's probably a better way to fix it but I can't imagine it'd be worth the effort. If I'm understanding things correctly, there's now a 10 second period on the 4th November, 2010 (I think it'd be the 3rd in US timezones) where this won't return a Tweet's timestamp when it could but it's highly unlikely that any tweets in that period will be cited. 15:31, 12 February 2023 (UTC)
 * Hah interesting. Thanks again. PhantomCaleb (talk) 16:25, 12 February 2023 (UTC)