01 December , 2018

Cara Mengganti Default Time Zone di XAMPP ke Indonesia

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:

  1. Cari file php.ini di C:\xampp\php\php.ini.
  2. Di dalam php.ini cari kata “date.timezone”.
  3. Default nya adalah “date.timezone = Europe/Berlin”, maka kita ganti dengan “date.timezone = Asia/Jakarta”.
  4. Selanjutnya restart XAMPP.
  5. Untuk melihat perubahan sukses atau tidak saya buat 1 file php kosong dan saya isikan
    echo date_default_timezone_get();
  6. Berikut penampakan file tadi jika di jalankan, jika muncul Asia/Jakarta berarti perubahan kita berhasil.

sekian tutorial sederhana ini semoga memang bermanfaat. terima kasih.

Share

Nurul Hidayat

Hello, saya adalah seorang software developer khususnya dibidang web. saya sangat menyukai Shell Scripting & Security semoga tulisan-tulisan kecil saya bisa bermanfaat.

You may also like...

31,556 Responses

  1. agen togel says:

    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.

  2. Bollyfun Tv says:

    Anu goes to a park and sitting on park bench prays god to help her.

    Also visit my site … Bollyfun Tv

  3. Bigg Boss 15 says:

    She first came to British attention through her debut
    play Free Outgoing.

    Feel free to surf to my site … Bigg Boss 15

  4. 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.

Leave a Reply