From a1e8c6fc94297741b1ee00e821b3bf9d4d51e189 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sat, 25 Oct 2014 17:33:47 +0200 Subject: use data for tweets and wiki changes --- helpers/calendar_helpers.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'helpers/calendar_helpers.rb') diff --git a/helpers/calendar_helpers.rb b/helpers/calendar_helpers.rb index daa4625..ed8ab16 100644 --- a/helpers/calendar_helpers.rb +++ b/helpers/calendar_helpers.rb @@ -2,14 +2,16 @@ require 'date' module CalendarHelpers - class Event + FORMATS = { + time_only: "%H:%M", + date_only: "%a. %d.%m", + date_string_short: "%e. %b %Y", + log: "%Y-%m-%d %H:%M" + } - # TODO i18n weekdays, group dates + class Event - FORMATS = { - time_only: "%H:%M", - date_only: "%a. %d.%m" - } + # TODO i18n weekdays, group dates def initialize(args={}) @summary = args.fetch("summary") -- cgit v1.2.1