Ribet gak sih kasih script date_default_timezone_set(“Asia/Bangkok”); di setiap lembar coding kamu hanya untuk set default timezone, ya mungkin kita bisa akalin pake include di php.
Tapi disini saya menawarkan cara yang lebih mudah, yaitu ganti default timezone di webserver kamu sendiri.
Karna saya user windows, maka kali ini saya kasih tutorial mengganti default timezone di xampp. š
Oke langsung saja berikut langkah-langkah nya:
- Cari file php.ini di C:\xampp\php\php.ini.
- Di dalam php.ini cari kata “date.timezone”.
- Default nya adalah ādate.timezone = Europe/Berlinā, maka kita ganti dengan “date.timezone = Asia/Jakartaā.
- Selanjutnya restart XAMPP.
- Untuk melihat perubahan sukses atau tidak saya buat 1 file php kosong dan saya isikan
echo date_default_timezone_get();
- Berikut penampakan file tadi jika di jalankan, jika muncul Asia/Jakarta berarti perubahan kita berhasil.
sekian tutorial sederhana ini semoga memang bermanfaat. terima kasih.
Hmm it looks like your blog ate my first comment (it was extremely long) so
I guess I’ll just sum it up what I submitted and say, I’m
thoroughly enjoying your blog. I too am an aspiring blog blogger but I’m still new to the whole thing.
Do you have any recommendations for rookie blog writers?
I’d genuinely appreciate it.
https://www.gamersocial.net/amkeypuradc aldbreea oshawn c94ff34b83
Anu goes to a park and sitting on park bench prays god to help her.
Also visit my site … Bollyfun Tv
sildenafil 10mg tablets
She first came to British attention through her debut
play Free Outgoing.
Feel free to surf to my site … Bigg Boss 15
Excellent post. I used to be checking continuously this weblog
and I am inspired! Extremely helpful information specifically the ultimate section :
) I care for such information much. I was looking for this certain info
for a very lengthy time. Thank you and best of luck.