gpstime 0.04: Fix shown UTC time zone sign
parent
793b5d6361
commit
0bacb71bbd
|
|
@ -280,7 +280,7 @@
|
||||||
{ "id": "gpstime",
|
{ "id": "gpstime",
|
||||||
"name": "GPS Time",
|
"name": "GPS Time",
|
||||||
"icon": "gpstime.png",
|
"icon": "gpstime.png",
|
||||||
"version":"0.03",
|
"version":"0.04",
|
||||||
"description": "Update the Bangle.js's clock based on the time from the GPS receiver",
|
"description": "Update the Bangle.js's clock based on the time from the GPS receiver",
|
||||||
"tags": "tool,gps",
|
"tags": "tool,gps",
|
||||||
"storage": [
|
"storage": [
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
0.03: Fix time output on new firmwares when no GPS time set (fix #104)
|
0.03: Fix time output on new firmwares when no GPS time set (fix #104)
|
||||||
|
0.04: Fix shown UTC time zone sign
|
||||||
|
|
@ -47,7 +47,7 @@ Bangle.on('GPS',function(f) {
|
||||||
g.drawString(t[4],120,185); // time
|
g.drawString(t[4],120,185); // time
|
||||||
if (fix.time) {
|
if (fix.time) {
|
||||||
// timezone
|
// timezone
|
||||||
var tz = (new Date()).getTimezoneOffset()/60;
|
var tz = (new Date()).getTimezoneOffset()/-60;
|
||||||
if (tz==0) tz="UTC";
|
if (tz==0) tz="UTC";
|
||||||
else if (tz>0) tz="UTC+"+tz;
|
else if (tz>0) tz="UTC+"+tz;
|
||||||
else tz="UTC"+tz;
|
else tz="UTC"+tz;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue