2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/help/en/help_timesource.php include/help/es/help_timesource.php include/help/ja/help_timesource.php: Fixed bad sintax query. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4550 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
116a78ffb9
commit
1f60ae2299
|
@ -1,3 +1,9 @@
|
|||
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/help/en/help_timesource.php
|
||||
include/help/es/help_timesource.php
|
||||
include/help/ja/help_timesource.php: Fixed bad sintax query.
|
||||
|
||||
2011-07-12 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* godmode/reporting/reporting_builder.php: Fixes constant notice in
|
||||
|
|
|
@ -40,17 +40,19 @@ global $config;
|
|||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||
break;
|
||||
case "postgresql":
|
||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||
break;
|
||||
case "oracle":
|
||||
$timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = $timestamp[0]['dt'];
|
||||
break;
|
||||
}
|
||||
ui_print_timestamp ($timestamp, false, $option);
|
||||
?>
|
||||
<br />
|
||||
<b>Your browser time:</b> <script type="text/javascript">document.write (date);</script>
|
||||
</p>
|
||||
</p>
|
||||
|
|
|
@ -40,17 +40,19 @@ global $config;
|
|||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||
break;
|
||||
case "postgresql":
|
||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||
break;
|
||||
case "oracle":
|
||||
$timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = $timestamp[0]['dt'];
|
||||
break;
|
||||
}
|
||||
ui_print_timestamp ($timestamp, false, $option);
|
||||
?>
|
||||
<br />
|
||||
<b>Hora de su navegador:</b> <script type="text/javascript">document.write (date);</script>
|
||||
</p>
|
||||
</p>
|
||||
|
|
|
@ -35,13 +35,15 @@ global $config;
|
|||
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
$timestamp = db_get_value_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = db_process_sql("SELECT UNIX_TIMESTAMP();");
|
||||
$timestamp = $timestamp[0]['UNIX_TIMESTAMP()'];
|
||||
break;
|
||||
case "postgresql":
|
||||
$timestamp = db_get_value_sql("SELECT ceil(date_part('epoch', CURRENT_TIMESTAMP));");
|
||||
break;
|
||||
case "oracle":
|
||||
$timestamp = db_get_value_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = db_process_sql("SELECT ceil((sysdate - to_date('19700101000000','YYYYMMDDHH24MISS')) * (86400)) as dt FROM dual");
|
||||
$timestamp = $timestamp[0]['dt'];
|
||||
break;
|
||||
}
|
||||
ui_print_timestamp ($timestamp, false, $option);
|
||||
|
|
Loading…
Reference in New Issue