forked from FOSS/BangleApps
Local for time in contour clock
parent
54ca2eed97
commit
792d9a3166
|
@ -13,13 +13,15 @@ exports.drawClock = function(fontIndex) {
|
|||
if (n!=10) return (false); //font file seems to be invalid
|
||||
var x=0;
|
||||
var y = g.getHeight()/2-digits[0].height/2;
|
||||
var date = new Date();
|
||||
var date = require('locale').time(new Date(),1);
|
||||
var hours = date.split(":")[0];
|
||||
var minutes = date.split(":")[1];
|
||||
g.clearRect(0,38,g.getWidth()-1,138);
|
||||
d1=parseInt(date.getHours()/10);
|
||||
d2=parseInt(date.getHours()%10);
|
||||
d1=parseInt(hours/10);
|
||||
d2=parseInt(hours%10);
|
||||
d3=10;
|
||||
d4=parseInt(date.getMinutes()/10);
|
||||
d5=parseInt(date.getMinutes()%10);
|
||||
d4=parseInt(minutes/10);
|
||||
d5=parseInt(minutes%10);
|
||||
w1=digits[d1].width;
|
||||
w2=digits[d2].width;
|
||||
w3=digits[d3].width;
|
||||
|
|
Loading…
Reference in New Issue