mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-26 12:49:35 +00:00
Fix DB version number and function mistakenly coded in always.php.
This commit is contained in:
parent
aa05688e4e
commit
9743c72c05
@ -190,7 +190,7 @@ $_SERVER['SERVER_NAME'] = $c->domain_name;
|
||||
|
||||
require_once('AwlQuery.php');
|
||||
|
||||
$c->want_dbversion = array(1,2,9);
|
||||
$c->want_dbversion = array(1,2,10);
|
||||
$c->schema_version = 0;
|
||||
$qry = new AwlQuery( 'SELECT schema_major, schema_minor, schema_patch FROM awl_db_revision ORDER BY schema_id DESC LIMIT 1;' );
|
||||
if ( $qry->Exec('always',__LINE__,__FILE__) && $row = $qry->Fetch() ) {
|
||||
|
||||
@ -339,8 +339,9 @@ function ISODateToHTTPDate( $isodate ) {
|
||||
* Convert a date into ISO format into the sparkly new ISO format.
|
||||
* @param string $indate The date to convert
|
||||
*/
|
||||
function DateToISODate( $indate ) {
|
||||
function DateToISODate( $indate, $in_utc=false ) {
|
||||
// Use strtotime since strptime is not available on Windows platform.
|
||||
if ( $in_utc ) return( gmdate('Ymd\THis\Z', strtotime($indate)) );
|
||||
return( date('c', strtotime($indate)) );
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user