Upcctns squirrel mail date issue: Difference between revisions
Appearance
Created page with " '''Scenario:''' In Squirrel Mail, it was only displaying date but not the time. '''What was required:''' Client wanted to display both date and time in his Squirrel Mail. ..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
We made some modification in "/ | We made some modification in "/var/www/html/webmail/functions/date.php" file, we changed the value for "date_format" entry in "getDateString" function. | ||
From | From | ||
----------------------------- | ----------------------------- | ||
$date_format = _("M j, Y"); | $date_format = _("M j, Y"); | ||
To | To | ||
-------------------------------------- | -------------------------------------- | ||
$date_format = _("D, M j, Y g:i a"); | $date_format = _("D, M j, Y g:i a"); | ||
-------------------------------------- | |||
Here is link for date format | |||
------------------------------------------- | |||
http://php.net/manual/en/function.date.php | |||
Then reload the "httpd" Daemon | Then reload the "httpd" Daemon | ||
/etc/init.d/httpd reload | /etc/init.d/httpd reload | ||
Latest revision as of 10:25, 7 April 2014
Scenario: In Squirrel Mail, it was only displaying date but not the time.
What was required:
Client wanted to display both date and time in his Squirrel Mail.
We made some modification in "/var/www/html/webmail/functions/date.php" file, we changed the value for "date_format" entry in "getDateString" function.
From
$date_format = _("M j, Y");
To
$date_format = _("D, M j, Y g:i a");
Here is link for date format
http://php.net/manual/en/function.date.php
Then reload the "httpd" Daemon
/etc/init.d/httpd reload