Renamed more-icons-per-row-5x4-flare576
[webos-internals:adamrmcd-modifications.git] / luna / add-date-to-top-bar-no-year.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 ee479ac..115140c 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 @@ -2337,7 +2337,9 @@ 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 +       $('clock').innerHTML = formatDate+'   '+Mojo.Format.formatDate(date, {time:format});
13         $('today').innerHTML = Mojo.Format.formatDate(date,{date:'short'});
14  },
15