diff --git a/apps/mclock/clock-morphing.js b/apps/mclock/clock-morphing.js index 50e81ec72..623c3278a 100644 --- a/apps/mclock/clock-morphing.js +++ b/apps/mclock/clock-morphing.js @@ -1,3 +1,4 @@ +var locales = require("locale"); // Offscreen buffer var buf = Graphics.createArrayBuffer(240,86,1,{msb:true}); function flip() { @@ -145,7 +146,7 @@ function draw(lastText,thisText,n) { buf.drawString(("0"+d.getSeconds()).substr(-2), x, y-8); // date buf.setFontAlign(0,-1); - var date = d.toString().substr(0,15); + var date = locales?locales.date(d,false):d.toString().substr(0,15); buf.drawString(date, buf.getWidth()/2, y+8); flip(); }