mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Now the exporter sets the proper dates
This commit is contained in:
parent
0035e8d9e1
commit
0eb0c88d3d
@ -48,10 +48,8 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
with open(target, "wb") as f:
|
with open(target, "wb") as f:
|
||||||
f.write(GnuPG.decrypted(document.pdf))
|
f.write(GnuPG.decrypted(document.pdf))
|
||||||
os.utime(target, times=(
|
t = int(time.mktime(document.created.timetuple()))
|
||||||
int(time.mktime(document.created.timetuple())),
|
os.utime(target, times=(t, t))
|
||||||
int(time.mktime(document.modified.timetuple()))
|
|
||||||
))
|
|
||||||
|
|
||||||
def _render(self, text, verbosity):
|
def _render(self, text, verbosity):
|
||||||
if self.verbosity >= verbosity:
|
if self.verbosity >= verbosity:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user