diff --git a/lib/view_tweets/app.rb b/lib/view_tweets/app.rb index a80e3fd..dba5371 100644 --- a/lib/view_tweets/app.rb +++ b/lib/view_tweets/app.rb @@ -31,7 +31,13 @@ def status_url screen_name, status_id def display_date time # todo: make this say x minutes/hours ago up to the next day, then display "day month" - time.strftime("%d %b") + str = if time.year < Time.now.year + "%d %b '%y" + else + "%d %b" + end + + time.strftime str end end