|
 |
|
ฟังชั่น date time มัน กินเวลาไป 1 ชม อ่ะครับ ช่วยทีคร้าาาบ |
|
 |
|
|
 |
 |
|
ลองใช้ฟังชั่น
date_default_timezone_set('Asia/Bangkok');
ไว้บนทุกๆไฟล์ หรือเก็บไว้ในไฟล์คอนฟิก ที่ทุกไฟล์ดึงมานะครับ
และอย่าลืมเซตโซนเวลา ที่เครื่องให้ถูกต้องด้วยล่ะครับ 
|
 |
 |
 |
 |
Date :
2009-09-08 21:15:42 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?
$host="localhost";
$user="root";
$pass="root";
$dbname="db_starwell";
$c = mysql_connect($host,$user,$pass);
mysql_db_query($dbname,"SET NAMES UTF8");
date_default_timezone_set('Asia/Bangkok'); <<<< เพิ่มตรงนี้หรือป่าวครับ
if (!$c){
echo "Database Connect Failed.";
exit();
}
?>
ถ้าใช่ผมลองแล้วไม่ได้เหมือนเดิมครับ
|
 |
 |
 |
 |
Date :
2009-09-08 21:29:24 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พี่ P@e คร้าาาบ ตอนนี้หาเจอไฟล์แร้ว แต่ว่า
;date.timezone = Asia/Bangkok
date.timezone = Asia/Bangkok
ต้องเอาเครื่องหมายด้านหน้าออกไหมคร้าาบ
|
 |
 |
 |
 |
Date :
2009-09-08 21:34:39 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ไว้บนสุดเลยครับ(เวลาอัพขึ้นจะได้ไปด้วย) ส่วนเรื่องใน php.ini นั้นเอา ; ออกครับ แต่ php.ini ไม่ได้อัพไปด้วยนะ
|
 |
 |
 |
 |
Date :
2009-09-08 21:37:33 |
By :
pjgunner |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตามคุณเอี่ยวเลยครับ
|
 |
 |
 |
 |
Date :
2009-09-08 21:41:25 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอ้ ได้แล้วครับ ขอบคุณพี่ ๆ ทั้งสองมากๆ เลยนะคร้าาาบ
|
 |
 |
 |
 |
Date :
2009-09-08 21:50:27 |
By :
tanuwate |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|