mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
Merge pull request #957 from paperless-ngx/feature-created-date
Feature: make frontend timezone un-aware
This commit is contained in:
@@ -306,6 +306,10 @@ class Document(models.Model):
|
||||
def thumbnail_file(self):
|
||||
return open(self.thumbnail_path, "rb")
|
||||
|
||||
@property
|
||||
def created_date(self):
|
||||
return timezone.localdate(self.created)
|
||||
|
||||
|
||||
class Log(models.Model):
|
||||
|
||||
|
Reference in New Issue
Block a user