Change Timezone for Logs and Date/time for uploaded files

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
2
18
Hi there,

Just wondering if there is any option or files i can change the timezone for yetishare error log file and date/time the files are uploaded and are scheduled to remove.

Any help would be appreciated.
Thanks
 

akxx874946

New Member
YetiShare User
Apr 3, 2015
18
0
1
Hi
Change in /core/includes/master.inc.php on all servers

// set timezone if not set, change to whatever timezone you want
if (!ini_get('date.timezone'))
{
date_default_timezone_set('GMT');
}

GMT channge to your timezone http://php.net/manual/en/timezones.php

example

"// set timezone if not set, change to whatever timezone you want
if (!ini_get('date.timezone'))
{
date_default_timezone_set('Europe/London');
} "
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
2
18
cool. i have already changed the php timezone to my local timezone and it did work, so didnt had to change anything else. its good to know you can do it just for file hosting script as well.

Thanks for the info.