Author Topic: แก้ไขปัญหา เบื้องต้นของตัว timezone php5.3  (Read 5453 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
พอดีอัฟ php ครับแล้วเกิดปัญหา

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Bangkok' for 'ICT/7.0/no DST' instead in apache22

เพิ่มบันทัด timezone เข้าไปใน php code ครับ

<?php

date_default_timezone_set('Asia/Bangkok');

?>