loleaflet/src/layer/marker/Annotation.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 392e22e9df8733b538f1330f314a404b070648d7
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Thu Sep 6 11:37:29 2018 +0200
Commit:     Andras Timar <andras.ti...@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) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to