Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: pro php date format Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mctis
Newbie
Newbie


Joined: 24 August 2008
Location: Italy
Online Status: Offline
Posts: 4
Posted: 18 September 2008 at 5:48am | IP Logged Quote mctis

in admin section after I add an account, the date format
(awm_settings-def_date_fmt) is default. It's possible changhe
it in dd/mm/yy??
Back to Top View mctis's Profile Search for other posts by mctis
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 September 2008 at 6:47am | IP Logged Quote Andrew

You can change date format in your account settings / Common / Default date format.

With regard to default value, currently, default date format for new accounts can be changed in the source code only. common\class_datetime.php file:

Code:
function GetDateFormatFromBd($bdDateFormat)
{

     if (strtolower($bdDateFormat) == 'default' || strtolower($bdDateFormat) == 'default'.DATEFORMAT_FLAG)
     {
           $bdDateFormat = 'mm/dd/yy';
     }

     if (!$bdDateFormat) return '';
     $l = strlen($bdDateFormat);

     if ($l > 2 && substr($bdDateFormat, -2) == DATEFORMAT_FLAG)
     {
           return substr($bdDateFormat, 0, $l - 2);
     }
     return $bdDateFormat;
}


Change 'mm/dd/yy' with necessary format.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide