Commit 8d2e68b4 by Carsten Brandt

removed duplicate arguments from base formattter

parent 1be42eef
......@@ -269,7 +269,7 @@ class Formatter extends Component
return $this->nullDisplay;
}
$value = $this->normalizeDatetimeValue($value);
return $this->formatTimestamp($value, $format === null ? $this->dateFormat : $format, $value);
return $this->formatTimestamp($value, $format === null ? $this->dateFormat : $format);
}
/**
......@@ -293,7 +293,7 @@ class Formatter extends Component
return $this->nullDisplay;
}
$value = $this->normalizeDatetimeValue($value);
return $this->formatTimestamp($value, $format === null ? $this->timeFormat : $format, $value);
return $this->formatTimestamp($value, $format === null ? $this->timeFormat : $format);
}
/**
......@@ -317,7 +317,7 @@ class Formatter extends Component
return $this->nullDisplay;
}
$value = $this->normalizeDatetimeValue($value);
return $this->formatTimestamp($value, $format === null ? $this->datetimeFormat : $format, $value);
return $this->formatTimestamp($value, $format === null ? $this->datetimeFormat : $format);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment