Let's say I have a page abc.php
where the following PHP code lies.
<?php
$current_time = date("Y-m-d H:i:s",time());
$curtim=strtotime($current_time);
echo $current_time.' '.$curtim;
?>
This page simply prints the current time like 2015-07-27 14:18:18. And I get the correct time when I am working with a 'Do No Harm Attitude'.
When I close the tab and reopen it using a shortcut key- Ctlr+Shift+T after some time, i still get 2015-07-27 14:18:18 as current time. I guess the page is not getting reloaded using that short key.
Is there a way to fetch the current time correctly when such scenarios come??