We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Relative date/time problem | Forum

ca47
ca47 Jan 24 '13
Hello,

there is a bug: If you activate the relative date/time checkbox, you don't see the time, when sth was posted anymore.


For example:

(without relative date/time):


Jan 22, 23:20


-> with time, everything ok


(with relative date/time):


Jan 22

-> without time


Can anyone help me, how i get this fixed?


The Forum post is edited by ca47 Jan 24 '13
Mohammad
Mohammad Jan 24 '13
all things about time and date is in date_time.php,you should edit this file :

ow_utilities\date_time.php

Alia Team
Alia Jan 25 '13
>>>

(with relative date/time):

Jan 22

-> without time


That is the way software originally works. Without relative time all days before "Yesterday" are displayed just as dates.


ca47
ca47 Jan 26 '13
ah okay. thank you
ca47
ca47 Jan 26 '13
I've got it!


Just delete the following lines in date_time.php:


{            if ( $onlyDate )            {                return $language->text('base', 'date_time_yesterday');            }
            return $language->text('base', 'date_time_yesterday') . ', ' . ( $militaryTime ? strftime("%H:%M", $timeStamp) : strftime("%I:%M%p", $timeStamp) );        }


Alia Team
Alia Jan 29 '13
Topic was moved from Bug reports and troubleshooting.