Finally fix timezone desaster
All UTC times will be converted to local time. No need for tzinfo, etc. Bear in mind to use UTC times in events for simplified input!
This commit is contained in:
parent
086991118f
commit
e94ddcb4ca
14 changed files with 21 additions and 24 deletions
|
|
@ -2,14 +2,10 @@
|
|||
# encoding: utf-8
|
||||
|
||||
require 'date'
|
||||
require 'tzinfo'
|
||||
require 'yaml'
|
||||
|
||||
|
||||
def event(day, dayoffset, location)
|
||||
#startDate = Time.new(day.year, day.month, day.day + dayoffset, 18, 0, 0, "+02:00")
|
||||
#tz = TZInfo::Timezone.get('Europe/Berlin')
|
||||
#startDate = tz.local_to_utc(Time.local(day.year, day.month, day.day + dayoffset, 18, 0, 0))
|
||||
startDate = Time.local(day.year, day.month, day.day + dayoffset, 18, 0, 0)
|
||||
{
|
||||
'startdate' => startDate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue