summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-08 12:05:36 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 12:42:22 -0700
commit0b5e1f700d28ab4dca9a39423aaf71f2c66b8ff7 (patch)
tree8f9f301f54d960bc4aea329bb57e728f50b38f1d /save-xml.c
parent49dac1d129016c4d057d52e70a43150966a368e9 (diff)
downloadsubsurface-0b5e1f700d28ab4dca9a39423aaf71f2c66b8ff7.tar.gz
Save the timestamp of the dive.
Save the timestamp of the dive if it exists in the data provided by the exif library. [Dirk Hohndel: fixed whitespace and format specifier] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c
index 9f2c2b46a..17f463a93 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -333,6 +333,8 @@ static void save_picture(struct membuffer *b, struct picture *pic)
put_string(b, " <picture filename='");
put_string(b, pic->filename);
put_string(b, "'");
+ if (pic->timestamp)
+ put_format(b, " timestamp='%ld'", pic->timestamp);
if (pic->latitude.udeg || pic->longitude.udeg) {
put_degrees(b, pic->latitude, " gps='", " ");
put_degrees(b, pic->longitude, "", "'");