diff options
Diffstat (limited to 'lib/orm/management/commands/lsupdates.py')
-rw-r--r-- | lib/orm/management/commands/lsupdates.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/orm/management/commands/lsupdates.py b/lib/orm/management/commands/lsupdates.py index 365c8ab4..2a89a811 100644 --- a/lib/orm/management/commands/lsupdates.py +++ b/lib/orm/management/commands/lsupdates.py @@ -130,7 +130,8 @@ class Command(BaseCommand): updated_source=DataSource.objects.get(id=id) updated_source.loaded = True if update_modified: - updated_source.lastModifiedDate = datetime.today().strftime('%Y-%m-%d %H:%M:%S') + updated_source.lastModifiedDate = datetime.today().strftime(DataSource.DATETIME_FORMAT) + updated_source.lastUpdatedDate = datetime.today().strftime(DataSource.DATETIME_FORMAT) updated_source.save() def nist_cwe(self, content): |