From bd00c6b83bec7a1fda93ec5594df957b0364668e Mon Sep 17 00:00:00 2001 From: glerch Date: Mon, 7 Sep 2015 23:34:52 +0200 Subject: Uemis downloader: fix bug when creating dive site Use dive->when when creating a dive site instead of time(NULL) as Dirk suggested Signed-off-by: glerch Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uemis-downloader.c b/uemis-downloader.c index 8500708ed..058dbc229 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -892,8 +892,7 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char * if (for_dive) *for_dive = atoi(val); } else if (!is_log && dive && !strcmp(tag, "divespot_id")) { - timestamp_t t; - dive->dive_site_uuid = create_dive_site("from Uemis", (int)time(NULL)); + dive->dive_site_uuid = create_dive_site("from Uemis", dive->when); track_divespot(val, dive->dc.diveid, dive->dive_site_uuid); #if UEMIS_DEBUG & 2 fprintf(debugfile, "Created divesite %d for diveid : %d\n", dive->dive_site_uuid, dive->dc.diveid); -- cgit v1.2.3-70-g09d2