From 6a628fddd3b987f1fe1871faa548daf71bdc19bf Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 2 May 2022 20:15:19 -0500 Subject: [PATCH] Modyfing nitter user created at parsing. --- Socialmetrica.package/NitterUser.class/instance/createdAt.st | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Socialmetrica.package/NitterUser.class/instance/createdAt.st b/Socialmetrica.package/NitterUser.class/instance/createdAt.st index f5aabb1..1dafde8 100644 --- a/Socialmetrica.package/NitterUser.class/instance/createdAt.st +++ b/Socialmetrica.package/NitterUser.class/instance/createdAt.st @@ -3,5 +3,7 @@ createdAt ^ createdAt ifNil: [| joinDateString | joinDateString := ((self documentTree xpath: '//div[@class="profile-joindate"]/span/@title') stringValue). joinDateString := joinDateString copyReplaceAll: '3 May' with: '03 May'. + joinDateString := joinDateString copyReplaceAll: '5 May' with: '05 May'. + joinDateString := joinDateString copyReplaceAll: '2 Feb' with: '02 Feb'. createdAt := (ZTimestampFormat fromString:'4:05 PM - 03 Feb 2001') parse: joinDateString. ] \ No newline at end of file