Skip to content

Instantly share code, notes, and snippets.

@damien
Created June 27, 2010 02:08
Show Gist options
  • Save damien/454555 to your computer and use it in GitHub Desktop.
Save damien/454555 to your computer and use it in GitHub Desktop.
def next_event
event = NeoEvent.first(
:starts_at.gt => Time.now,
:cancelled => false,
:order => [ :starts_at.asc ]).starts_at
"<time datetime='#{event.strftime}'>#{event.strftime('%I:%M %p PST')}</time>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment