Skip to content
Snippets Groups Projects
Commit 962b4c66 authored by JediKev's avatar JediKev
Browse files

issue: create_date Variable

This addresses an issue where the create_date variable is showing as Unix
timestamp instead of formatted date. This was due to a typo introduced in
commit `8623ed60` where the `$format` argument was forgotten for
`Format::datetime()` in the `FormattedLocalDate::getVar()` method.
parent 149f5735
No related branches found
No related tags found
No related merge requests found
......@@ -1017,11 +1017,11 @@ implements TemplateVariable {
case 'short':
return Format::date($this->date, $this->fromdb, false, $this->timezone, $this->user);
case 'long':
return Format::datetime($this->date, $this->fromdb, $this->timezone, $this->user);
return Format::datetime($this->date, $this->fromdb, false, $this->timezone, $this->user);
case 'time':
return Format::time($this->date, $this->fromdb, false, $this->timezone, $this->user);
case 'full':
return Format::daydatetime($this->date, $this->fromdb, $this->timezone, $this->user);
return Format::daydatetime($this->date, $this->fromdb, false, $this->timezone, $this->user);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment