Fixing creation date return depending on type of scrapping.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-04-17 12:30:28 -05:00
parent 7de47a4959
commit 49d5529934
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
accessing
created
^ created ifNotNil: [ ^ DateAndTime fromString: ((created splitOn: $,) second withoutSuffix: 'GMT') ]
(created endsWith: 'GMT') ifTrue: [ ^ DateAndTime fromString: ((created splitOn: $,) second withoutSuffix: 'GMT') ].
^ DateAndTime fromString: created