mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
First lot of compatability fixes
This commit is contained in:
@@ -304,9 +304,9 @@ class Date_Span
|
||||
$pm = 'am';
|
||||
$day = $hour = $minute = $second = 0;
|
||||
for ($i = 0; $i < strlen($format); $i++) {
|
||||
$char = $format{$i};
|
||||
$char = $format[$i];
|
||||
if ($char == '%') {
|
||||
$nextchar = $format{++$i};
|
||||
$nextchar = $format[++$i];
|
||||
switch ($nextchar) {
|
||||
case 'c':
|
||||
$str .= '%d, %d:%d:%d';
|
||||
@@ -635,9 +635,9 @@ class Date_Span
|
||||
}
|
||||
$output = '';
|
||||
for ($i = 0; $i < strlen($format); $i++) {
|
||||
$char = $format{$i};
|
||||
$char = $format[$i];
|
||||
if ($char == '%') {
|
||||
$nextchar = $format{++$i};
|
||||
$nextchar = $format[++$i];
|
||||
switch ($nextchar) {
|
||||
case 'C':
|
||||
$output .= sprintf(
|
||||
|
||||
Reference in New Issue
Block a user