First Last Prev Next    No search results available
Details
: %dateshort% and %datelocal% omit time portion
Bug#: 26628
: smarttemplate4
: General
Status: RESOLVED
Resolution: FIXED
: PC
: Windows NT
: unspecified
: P2
: normal
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Axel Grude <axel.grude@gmail.com>
Assigned To: Axel Grude <axel.grude@gmail.com>

Attachments
2.1 pre 21 (536.12 KB, application/x-xpinstall)
2019-01-04 06:45, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2019-01-04 05:13
%dateshort% and %datelocal% only output the date.
Expected behavior - they should also output a time.
------- Comment #1 From Axel Grude 2019-01-04 06:45:22 -------
Created an attachment (id=8577) [details]
2.1 pre 21

Here is a first implementation using the localized date formats described at
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat

Settings for time:
  hour12: false,
  hour: "numeric",
  minute: "2-digit",
  dateStyle: "full"

Settings for date - datelocal:
  dateOptions.weekday = "long";
  dateOptions.day = "numeric";
  dateOptions.month = "short";
  dateOptions.year = "numeric";


Settings for date - dateshort:
  dateOptions.day = "numeric";
  dateOptions.month = "numeric";
  dateOptions.year = "numeric";

I do not know what the default should be here, but the older settings
  dateStyle: "full", 
  timeStyle: "long"
don't seem to be supported anymore.
------- Comment #2 From Axel Grude 2019-07-28 06:47:29 -------
Resolved Fixed: Release 2.1 - 28/07/2019

First Last Prev Next    No search results available