From 49d5529934f742754f841d0a746c4d2c0c8ccc0e Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 17 Apr 2022 12:30:28 -0500 Subject: [PATCH] Fixing creation date return depending on type of scrapping. --- Socialmetrica.package/Tweet.class/instance/created.st | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Socialmetrica.package/Tweet.class/instance/created.st b/Socialmetrica.package/Tweet.class/instance/created.st index 258231e..23c25e2 100644 --- a/Socialmetrica.package/Tweet.class/instance/created.st +++ b/Socialmetrica.package/Tweet.class/instance/created.st @@ -1,3 +1,4 @@ accessing created - ^ created ifNotNil: [ ^ DateAndTime fromString: ((created splitOn: $,) second withoutSuffix: 'GMT') ] \ No newline at end of file + (created endsWith: 'GMT') ifTrue: [ ^ DateAndTime fromString: ((created splitOn: $,) second withoutSuffix: 'GMT') ]. + ^ DateAndTime fromString: created \ No newline at end of file