summaryrefslogtreecommitdiff
path: root/src/dwgo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dwgo.cpp')
-rw-r--r--src/dwgo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dwgo.cpp b/src/dwgo.cpp
index cae2e4e..4ffa462 100644
--- a/src/dwgo.cpp
+++ b/src/dwgo.cpp
@@ -71,7 +71,7 @@ typedef struct
typedef struct
{
- char station[5]; // Metar ID [ 4 characters + \0
+ char station[6]; // Metar ID [ 5 characters + \0
char name[16]; // Station name (it's for you). It's short to fit in.
} T_Station;
@@ -616,7 +616,7 @@ void displaytemp(XDraw *image, const DwgoConf cfg, localtemp *local_stt, int tm_
image->drawString(sttext.x, sttext.y, sttext.z, txcolor, (char*)txt_font, (char*)local_stt->location_name.data());
if ((sttime.y>-1) && (local_stt->loaded))
{
- time_taking=local_stt->info_time+tm_diff; // Translates to local time
+ time_taking=local_stt->info_time; // Translates to local time
moment=localtime(&time_taking);
sprintf(tmp_disp, "%.2d:%.2d", moment->tm_hour,moment->tm_min); // Makes it 00:00
image->drawString(sttime.x, sttime.y, sttime.z, ticolor, (char*)tim_font, (char*)tmp_disp);