Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ical dates showing in UTC instead of local time zone #9

Open
mfrederickson opened this issue Aug 29, 2014 · 2 comments
Open

ical dates showing in UTC instead of local time zone #9

mfrederickson opened this issue Aug 29, 2014 · 2 comments
Labels

Comments

@mfrederickson
Copy link
Contributor

Someone in the group wrote:

I'm working with concerto 2.0 for the first time and I've run into a time zone problem. The server clock is correct the the screen shows the correct time and date. My problem is that I want to add a google calendar option. I created the calendar and made it public. I copied the ICAL address and added the calendar to concerto. Everything looks fine except for the times. I set an event for 10:00am - 10:30am and it's showing 3:00pm - 3:30pm. It would appear that it's looking at my calendar and adjusting it upto UTC time..

I tried looking at an event scheduled for 12:55pm and found it came back in UTC also. Looks like we might need to add the in_time_zone(Time.zone) in the model to get it to display properly...

2.1.0 :036 > e.dtstart.to_time
 => Wed, 17 Sep 2014 20:55:00 +0000 
2.1.0 :037 > Time.zone
 => #<ActiveSupport::TimeZone:0x00000007119318 @name="Alaska", @utc_offset=nil, @tzinfo=#<TZInfo::TimezoneProxy: America/Juneau>, @current_period=nil> 
2.1.0 :038 > e.dtstart.to_time.in_time_zone(Time.zone).strftime("%l:%M %P")
 => "12:55 pm" 
@carsifreifunk
Copy link

Is there a workaround for this bug?
I get this issue in my content. In all settings I set UTC+1 (Europe/Berlin) and in the client is UTC shown.

@ajones6
Copy link

ajones6 commented Feb 7, 2018

If I try to use a Google Calendar using the iCal method, the times are not correct. The Google API method seems broken, so I have to use the iCal method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants