lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.1 vs lib/onebox/engine/twitter_status_onebox.rb in onebox-1.8.2
- old
+ new
@@ -66,12 +66,12 @@
if twitter_api_credentials_present?
created_at = access(:created_at)
date = DateTime.strptime(created_at, "%a %b %d %H:%M:%S %z %Y")
user_offset = access(:user, :utc_offset).to_i
offset = (user_offset >= 0 ? "+" : "-") + Time.at(user_offset.abs).gmtime.strftime("%H%M")
- date.new_offset(offset).strftime("%l:%M %p - %e %b %Y")
+ date.new_offset(offset).strftime("%-l:%M %p - %-d %b %Y")
else
- raw.css(".tweet-timestamp")[0].attribute('title')
+ raw.at_css(".tweet-timestamp").attr('title')
end
end
def title
if twitter_api_credentials_present?