ใส่โค้ด วันที่แล้วขึ้น Error Strict Standards: date() [function.date]: It is not

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: ใส่โค้ด วันที่แล้วขึ้น Error Strict Standards: date() [function.date]: It is not

Re: ใส่โค้ด วันที่แล้วขึ้น Error

โดย mindphp » 01/04/2011 1:08 am

จขกท . แก้ไขได้ยังครับ
เพิ่ม

โค้ด: เลือกทั้งหมด

date.timezone = Asia/Bangkok
ลงไปในไฟล์ php.ini

Re: ใส่โค้ด วันที่แล้วขึ้น Error

โดย imsn » 31/03/2011 2:42 pm

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting

ยังไม่ได้ตั้งค่า timezone ของ server
เคยเห็นวิธีในกระทู้เก่าๆ ลองค้นดูนะ

ใส่โค้ด วันที่แล้วขึ้น Error Strict Standards: date() [function.date]: It is not

โดย pammika » 31/03/2011 10:09 am

ลบกวนช่วยหน่อยนะค่ะ
ขอบคุณค่ะ

ใส่โค้ดนี้แล้วขึ้น $date_ques=date("Y-m-d");


Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\webboard\question_save.php on line 21

ข้างบน