* A date/input_time_adjusted string. Defaults to 'now'.
* @param mixed $timezone
* PHP DateTimeZone object, string or NULL allowed.
- * Defaults to NULL.
+ * Defaults to NULL. Note that the $timezone parameter and the current
+ * timezone are ignored when the $time parameter either is a UNIX timestamp
+ * (e.g. @946684800) or specifies a timezone
+ * (e.g. 2010-01-28T15:00:00+02:00).
+ * @see http://php.net/manual/datetime.construct.php
* @param array $settings
* - validate_format: (optional) Boolean choice to validate the
* created date using the input format. The format used in
$format = parent::format($format, $settings);
// Translates a formatted date string.
- $translation_callback = function($matches) use ($langcode) {
+ $translation_callback = function ($matches) use ($langcode) {
$code = $matches[1];
$string = $matches[2];
if (!isset($this->formatTranslationCache[$langcode][$code][$string])) {