Index: branches/5.1.x/core/kernel/utility/formatters/date_formatter.php
===================================================================
diff -u -N -r13545 -r13613
--- branches/5.1.x/core/kernel/utility/formatters/date_formatter.php (.../date_formatter.php) (revision 13545)
+++ branches/5.1.x/core/kernel/utility/formatters/date_formatter.php (.../date_formatter.php) (revision 13613)
@@ -1,6 +1,6 @@
CalculatedFields) || !is_array($object->CalculatedFields) ) {
$object->CalculatedFields = Array();
}
-// $object->CalculatedFields[$field_name.'_formatted'] = 'FROM_UNIXTIME('.'`%1$s`.'.$field_name.' + '.$this->Application->TimeZoneAdjustment().', \''.$this->SQLFormat($field_options['format']).'\')';
+// $object->CalculatedFields[$field_name.'_formatted'] = 'FROM_UNIXTIME('.'`%1$s`.'.$field_name.', \''.$this->SQLFormat($field_options['format']).'\')';
$object->CalculatedFields[$field_name.'_date'] = '%1$s.'.$field_name;
$object->CalculatedFields[$field_name.'_time'] = '%1$s.'.$field_name;
// $opts['format'] = $field_options['format'];
@@ -219,7 +219,7 @@
return adodb_gmdate($options['format'], $value);
}
- return adodb_date($options['format'], $value + $this->Application->TimeZoneAdjustment());
+ return adodb_date($options['format'], $value);
}
function HumanFormat($format)
@@ -442,7 +442,7 @@
return adodb_gmmktime($hour, $minute, $second, $month, $day, $year);
}
- return adodb_mktime($hour, $minute, $second, $month, $day, $year) - $this->Application->TimeZoneAdjustment();
+ return adodb_mktime($hour, $minute, $second, $month, $day, $year);
}
function GetSample($field, &$options, &$object)
Index: branches/5.1.x/core/kernel/db/db_tag_processor.php
===================================================================
diff -u -N -r13606 -r13613
--- branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 13606)
+++ branches/5.1.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 13613)
@@ -1,6 +1,6 @@
Application->TimeZoneAdjustment();
+ $date = $timestamp;
// prepare phrase replacements
$replacements = Array (
Index: branches/5.1.x/core/admin_templates/config/custom_variables.tpl
===================================================================
diff -u -N
--- branches/5.1.x/core/admin_templates/config/custom_variables.tpl (revision 0)
+++ branches/5.1.x/core/admin_templates/config/custom_variables.tpl (revision 13613)
@@ -0,0 +1,80 @@
+