mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Now the exporter sets the proper dates
This commit is contained in:
parent
0035e8d9e1
commit
0eb0c88d3d
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue