Skip to content
Commit 681ad3f9 authored by Volte--Vieira Philippe's avatar Volte--Vieira Philippe Committed by Germán Poo-Caamaño
Browse files

properties: Show None when missing creation/modification date



According to the PDF spec, the creation date and modification date are
optional (for pdf documents). We can safely assume that a file will not
to be modified exactly at 31 Dec 1969 23:59:59 UTC, so each creation and
modification date equal to -1 is considered as NULL for the pointers to
the other attributes (None is displayed).

The if statements could be used in the future when using GDateDime instead
of GTime (a pointer could help, or optional type), and it works for
any type of document, not only PDF.

Closes: #1549

Signed-off-by: default avatarPhilippe Volte--Vieira <philippeisvv@hotmail.fr>
parent 92aef391
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment