From 0b5e1f700d28ab4dca9a39423aaf71f2c66b8ff7 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 8 Jun 2014 12:05:36 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- save-xml.c | 2 ++ 1 file changed, 2 insertions(+) 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, " 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, "", "'"); -- cgit v1.2.3-70-g09d2