echo date('d/m/Y H:i:s');
//output: 13/12/2012 11:10:57
print_r(getDataArray($dblink, 'select current_timestamp'));
//output: Array ([0] => Array ([computed] => **2012-04-12 11110:05**))
當我嘗試獲取「current_timestamp」+ php + sql服務器時,出現錯誤,錯誤的日期。誰能幫我?錯誤的日期時間 - PHP + SQL服務器
- 日期在MSSQL配置(php.ini中)轉換爲 「關」
這是一個問題locale.conf? /etc/locale.conf ....
感謝
是安裝在同一服務器上MSSQL PHP在哪裏運行? (你是如何在CentOS上安裝Microsoft SQL服務器的?) –
@BogdanBurim no ..另一臺服務器。 (我使用mssql - php 5.2.10) –
您需要檢查服務器設置(語言環境,日期和時間) –