Hi.
I need to capture and store the time in database whenever there is application or approval is submitted. (in 24 hours time format)
I've tried time() to capture time and strftime("%H:%M", $timenow) to retrieve and dispaly the time.
However, the hour for the time is incorrect.
Some questions I would like to ask:
i. By using time(), where is the time retrieved from? Is it from our computer time or somewhere else?
ii. The error is hour shows a constant difference of 8 hour with the actual time (I've tried several time values by changing the time from my computer and observe the output from system). Is this because of timezone?
iii. And most of all, is there anyway to help me solve this problem?
Thanks in advance.