summaryrefslogtreecommitdiffstats
path: root/helpers.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 20:23:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-16 20:24:56 -0700
commitb3e662a895f6106846b236816ea13a458b95ab4a (patch)
treec5059c7d4002d906f4fec8b4a54a6870783a015c /helpers.h
parentbebcbfe92ac29681db0f4662b930c5f8a48448d3 (diff)
downloadsubsurface-b3e662a895f6106846b236816ea13a458b95ab4a.tar.gz
Pick the correct timezoneoffset for the day in question
Calculating the timezoneoffset for the current date really makes no sense whatsoever when displaying a time that isn't "now". Fixes #605 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers.h b/helpers.h
index f74d44939..06a431779 100644
--- a/helpers.h
+++ b/helpers.h
@@ -27,7 +27,7 @@ void set_default_dive_computer(const char *vendor, const char *product);
void set_default_dive_computer_device(const char *name);
QString getSubsurfaceDataPath(QString folderToFind);
extern const QString get_dc_nickname(const char *model, uint32_t deviceid);
-int gettimezoneoffset();
+int gettimezoneoffset(time_t when = 0);
int parseTemperatureToMkelvin(const QString &text);
QString get_dive_date_string(timestamp_t when);
QString get_short_dive_date_string(timestamp_t when);