5 new, 10 updated patches.
[webos-internals:justyns-modifications.git] / top-bar / top-bar-add-date-as-mm-period-dd.patch
1 diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2 index a4a150e..9f61f90 100644
3 --- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4 +++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5 @@ -2645,7 +2645,10 @@ updateClockEveryMinute: function() {
6                 }
7         }
8         format = format.replace(/\s?a\s?/,"");  
9 -       $('clock').innerHTML = Mojo.Format.formatDate(date, {time: format});                            
10 +  var formatDate = Mojo.Format.formatDate(date, {date:'short'});
11 +  formatDate = formatDate.substr(0, formatDate.lastIndexOf('/'));
12 +  formatDate = formatDate.replace("/", ".");
13 +       $('clock').innerHTML = formatDate+'   '+Mojo.Format.formatDate(date, {time:format});
14         $('today').innerHTML = Mojo.Format.formatDate(date,{date:'short'});
15  },
16