Modyfing nitter user created at parsing.
This commit is contained in:
parent
aa5cf9cbba
commit
6a628fddd3
@ -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.
|
||||
]
|
Loading…
Reference in New Issue
Block a user