CodeIgniter Forums

Full Version: help with date
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

hello.. i need to display date in one of my views...

i tried


$now = time();

echo unix_to_human($now,'UP8')

but it gives me the wrong time.. i need to echo the time in GMT +8 timezone or "UP8" (UTC + 8:00) Beijing, Hong Kong, Perth, Singapore, Taipei