Fix DB version number and function mistakenly coded in always.php.

This commit is contained in:
Andrew McMillan 2011-09-12 14:36:56 +12:00
parent aa05688e4e
commit 9743c72c05
2 changed files with 3 additions and 2 deletions

View File

@ -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() ) {

View File

@ -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)) );
}