diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-15 09:14:22 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-15 10:09:42 -0800 |
commit | 3b7d68c091ae45b5de0aa2293afa92381111a76b (patch) | |
tree | 080691b29e4e44e889701a6d13870f07195f6870 /cochran.c | |
parent | 2fb7aa1172930cbedb5ea9b24c6f2c98f40a7ff1 (diff) | |
download | subsurface-3b7d68c091ae45b5de0aa2293afa92381111a76b.tar.gz |
Correct the start time of planned dives
Subsurface follows the lead of most divecomputers to use times without
timezone - so all times are implicitly assumed to be local time of the
dive location; so in order to give the current time in that way we
actually need to add the timezone offset.
Instead of relying on OS specific members of struct tm we use the glib
timezone functions to get the timezone offset for us. Of course, the
function used to do this is only in glib 2.26 or newer, which once again
means that Debian stable won't be supported. But since that doesn't build
other parts of Subsurface, either, I think I'll live with that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cochran.c')
0 files changed, 0 insertions, 0 deletions