Monday, January 16, 2012

PHP Get gmt date with timezone

<?php 
$timezone = 8;
echo gmdate("Y-m-d H:i:s", time() + 3600*($timezone+date("I")));
?>

Posted via email from Posterous

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...