mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:03:24 +00:00
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>
This commit is contained in:
parent
49dac1d129
commit
0b5e1f700d
1 changed files with 2 additions and 0 deletions
|
@ -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, "", "'");
|
||||
|
|
Loading…
Add table
Reference in a new issue