Modyfing nitter user created at parsing.

This commit is contained in:
ruidajo 2022-05-02 20:15:19 -05:00
parent aa5cf9cbba
commit 6a628fddd3

View File

@ -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.
]