Explain previous posts. If there's a post from 2008, do you really want it to show that the user posted it on october 1st 2008 at 9:08 am? There is a mechanism (with some logic) behind showing the time and date when the posts were made. Do you want to break into that mechanism? Look at some of the really old threads here and then some recent posts in that threads, you'll see the difference in showing date and time for those posts.
For starters, look at /library/core/class.format.php and then the Date() function personally, I think your answer lies in this code: // Alter the timestamp based on the user's hour offset
$Session = Gdn::Session();
if ($Session->UserID > 0)
$Timestamp += ($Session->User->HourOffset * 3600);And so there's a user's hour offset somewhere which you can set to whatever to make your dates show up differently
Let's see if I can split the thread if we deviate from the original topic If you want to see the exact timestamp (real, long dateformat could be better) You'll have to do some programming then. <a href="url" alt="alternate">Just a link</a> By using alt="something" and you hover over it, you'll get that alternate text.
Let's see if I can split the thread if we deviate from the original topic If you want to see the exact timestamp (real, long dateformat could be better) You'll have to do some programming then. <a href="url" alt="alternate">Just a link</a> By using alt="something" and you hover over it, you'll get that alternate text.
Answers
The format is defined in config.php (use example (ie. current) available in config-default.php), it's base on strftime format.
There is a mechanism (with some logic) behind showing the time and date when the posts were made. Do you want to break into that mechanism?
Look at some of the really old threads here and then some recent posts in that threads, you'll see the difference in showing date and time for those posts.
There was an error rendering this rich post.
I want to know what time yesterday something was posted.
It just says "September 22nd"
My forum is a Forex forum the forex market is open 24 hours a day.
My users will place images on the site and having time and date when analysing financial charting images is needed.
Cheers for the reply so far :-)
personally, I think your answer lies in this code:
// Alter the timestamp based on the user's hour offset $Session = Gdn::Session(); if ($Session->UserID > 0) $Timestamp += ($Session->User->HourOffset * 3600);
And so there's a user's hour offset somewhere which you can set to whatever to make your dates show up differentlyThere was an error rendering this rich post.
Would it be possible without too much hassle to maybe show the exact timestamp when the date is hovered?
Rgds
If you want to see the exact timestamp (real, long dateformat could be better) You'll have to do some programming then.
<a href="url" alt="alternate">Just a link</a>
By using alt="something" and you hover over it, you'll get that alternate text.
There was an error rendering this rich post.
There was an error rendering this rich post.
Did anyone managed to do what @michaelfasani asked for?