From 962b4c666baf4b484767d9ee0633575df954d75a Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Wed, 31 Oct 2018 15:48:28 -0500 Subject: [PATCH] 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 `8623ed6` where the `$format` argument was forgotten for `Format::datetime()` in the `FormattedLocalDate::getVar()` method. --- include/class.format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.format.php b/include/class.format.php index 399feaf0a..216cb6e63 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -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); } } -- GitLab