[eluser]wh1tel1te[/eluser]
[quote author="afro" date="1302863825"]This code gives me a time that is four hours behind the local time,
Code:
Employees on leave as at <?php echo date("H:i, F jS Y",time());?> from the <?php echo $this->input->post('department');?> department are as follows.
what would be the problem.[/quote]
PHP time() function returns the server time, not the local time. If your server is located in a different country to you, you will get a different time back than your local time.