date(“H:i:s”)在php中显示+1时间

Im in Asia/Jakarta timezone (UTC +7). When i run this date("H:i:s"), it shows +1 time. Example 01:00 am in GMT, so it show 09:00 which should show 08:00.

I already changed my php.ini. It's look like this.

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Jakarta"

What should i do to make it right ?

Thank you.

try using date_default_timezone_set

<?php
echo date("H:i:s");

date_default_timezone_set("Asia/Jakarta"); 
echo date("H:i:s");
?>

This works fine,

07:02:15
14:02:15

see example code