summaryrefslogtreecommitdiff
path: root/helpers/calendar_helpers.rb
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-10-25 17:33:47 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-10-25 17:33:47 +0200
commita1e8c6fc94297741b1ee00e821b3bf9d4d51e189 (patch)
treea9db9acb39726ed52d2f904dfbc2de56b18655c9 /helpers/calendar_helpers.rb
parent90c0d3659850d71119a2825cfedc85f18e9c768f (diff)
use data for tweets and wiki changes
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")