jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 355 forks source link

[BUG] document_exporter sets {created} one day earlier #1059

Open AndreiGavriliu opened 3 years ago

AndreiGavriliu commented 3 years ago

Describe the bug Hi all,

I checked the documentation and could not find anything regarding this. I am running a cronjob every few minutes to export all the documents so I can also access them directly.

PAPERLESS_FILENAME_FORMAT={document_type}/{correspondent}/{title} ({created}) docker exec -i paperless_webserver_1 document_exporter ../export --use-filename-format --delete

this creates the folder structure as stated in PAPERLESS_FILENAME_FORMAT, but the {created} is one day earlier.

To Reproduce Steps to reproduce the behavior:

  1. Go to any document
  2. Click on set Date created to e.g. 02/11/2013
  3. Run export command
  4. Filename is exported e.g.: invoice/some company/my awesome pc (2013-11-01)

Expected behavior Filename is exported e.g.: invoice/some company/my awesome pc (2013-11-02)

Screenshots no screenshots

Webserver logs no logs available

Relevant information

choener commented 3 years ago

Hi,

I think I had the same problem. Unfortunately I did not write down which change I made, but I think these are the most likely ones, which I set as environment variables for docker (I am on NixOS):

PAPERLESS_OCR_LANGUAGES = "eng deu por";
PAPERLESS_OCR_LANGUAGE = "deu"; # most documents have this language
PAPERLESS_TIME_ZONE = "Europe/Berlin";