Adjust server time

Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself.


$today = date('Y-m-d-G');
$today = strftime("%Y-%m-%d-%H", strtotime("$today -5 hour"));
Enjoyed this article? Please consider donating: 3FVR5qaxYV8yAgNUUS7FC3o8c54YfDR5zK