View Single Post
  #3  
Old 26th December 2019, 19:37
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Bump:
Quote:
Originally Posted by smoky28 View Post
PHP Code:
function get_date_time($timestamp 0){  if ($timestamp)    return date("Y-m-d H:i:s"$timestamp);  else    return gmdate("Y-m-d H:i:s");} 
replace globalfuntcions php.

If your fix prevents the warning from occurring and the person is happy with the fix than good BUT one has to wonder if the fix will also fix the security issue in the warning :(

If u need to get the correct time no matter where u are in the world and u wana do so without PHP complaining then this could work BUT! like I said u will need to edit a few things.


Just an example.

PHP Code:
function get_date_time(){

global 
$CURUSER;

date_default_timezone_set($CURUSER["timezone"]); 
return 
date("Y-m-d H:i:s");

I suppose u could just add
PHP Code:
date_default_timezone_set($CURUSER["timezone"]); 
at or near the top of globalfuntions.php too, if u want but maybe best practice to only trigger this when been used.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote