From 9743c72c0534dcdbe130f4aa992ca1d505e3bae3 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 12 Sep 2011 14:36:56 +1200 Subject: [PATCH] Fix DB version number and function mistakenly coded in always.php. --- htdocs/always.php | 2 +- inc/always.php.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/always.php b/htdocs/always.php index b5c31217..ddc8520f 100644 --- a/htdocs/always.php +++ b/htdocs/always.php @@ -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() ) { diff --git a/inc/always.php.in b/inc/always.php.in index cf4f1ef7..8b5f4eb8 100644 --- a/inc/always.php.in +++ b/inc/always.php.in @@ -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)) ); }