summaryrefslogtreecommitdiff
path: root/helpers/calendar_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/calendar_helpers.rb')
-rw-r--r--helpers/calendar_helpers.rb14
1 files changed, 8 insertions, 6 deletions
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")