Adding time stamps to quotes
I've been trying to add a timestamp to quotes, but I'm not sure how to add the timestamp in a way that will be correct across time zones. Right now it gets the timezone of the comment relative to the person who is clicking on the quote button, then that becomes hard coded along with the rest of the comment in the DB.
This is in plugins\Quotes\class.quotes.plugin.php, line 474:
$DateInserted = strtotime($Data->DateInserted); //Get the date the post was created $QuoteBody = $Data->Body; $Quote = '> Posted by '.sprintf(t('%s '), '@'.$Data->InsertName)." (".date("M d, Y", $DateInserted).' at '.date("g:i A", $DateInserted + 7200).") > \n". //Add timestamp and name of author '> '.str_replace("\n", "\n> ", $QuoteBody)."\n";
I suppose I need to add the date in as a tag or some sorts that gets rendered later?
Any advice from master Vanilla Jedi would be most appreciated.