[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 6 09:38:02 UTC 2018
loleaflet/src/layer/marker/Annotation.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 392e22e9df8733b538f1330f314a404b070648d7
Author: Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Sep 6 11:37:29 2018 +0200
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Sep 6 11:37:41 2018 +0200
loleaflet: better to use short day and short month, long versions don't always fit in the box
Change-Id: I114d67aeca3797dde9eff854ea5b46676e487c08
diff --git a/loleaflet/src/layer/marker/Annotation.js b/loleaflet/src/layer/marker/Annotation.js
index a8ceef119..a665abf73 100644
--- a/loleaflet/src/layer/marker/Annotation.js
+++ b/loleaflet/src/layer/marker/Annotation.js
@@ -335,7 +335,7 @@ L.Annotation = L.Layer.extend({
$(this._authorAvatarImg).attr('src', this._data.avatar);
var d = new Date(this._data.dateTime.replace(/,.*/, 'Z'));
- var dateOptions = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
+ var dateOptions = { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' };
$(this._contentDate).text((isNaN(d.getTime()) || this._map.getDocType() === 'spreadsheet')? this._data.dateTime: d.toLocaleDateString(String.locale, dateOptions));
if (this._data.trackchange) {
More information about the Libreoffice-commits
mailing list