2013-01-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/db/postgresql.php
	include/db/mysql.php
	include/db/oracle.php: Fixed function get_system_time when 
	timesource is system.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2013-01-15 09:35:16 +00:00
parent 7fd387b9d7
commit c92b473301
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2013-01-15 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/db/postgresql.php
include/db/mysql.php
include/db/oracle.php: Fixed function get_system_time when
timesource is system.
2013-01-14 Sergio Martin <sergio.martin@artica.es>
* pandoradb.sql

View File

@ -987,7 +987,7 @@ function mysql_get_system_time() {
if ($time != 0)
return $time;
if ($config["timesource"] = "sql") {
if ($config["timesource"] == "sql") {
$time = db_get_sql ("SELECT UNIX_TIMESTAMP();");
if (empty ($time)) {
return time ();

View File

@ -1342,7 +1342,7 @@ function oracle_get_system_time() {
if ($time != 0)
return $time;
if ($config["timesource"] = "sql") {
if ($config["timesource"] == "sql") {
$time = db_get_sql ("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
if (empty ($time)) {
return time ();

View File

@ -1021,7 +1021,7 @@ function postgresql_get_system_time() {
if ($time != 0)
return $time;
if ($config["timesource"] = "sql") {
if ($config["timesource"] == "sql") {
$time = db_get_sql ("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
if (empty ($time)) {
return time ();