NooTheme Premium WordPress Theme › Forums › Timetable › UTC To Local Time Issues
Tagged: UTC Times
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by tinhbeng.
-
AuthorPosts
-
4 years, 7 months ago #1096002
I have just purchased Timetable and have a few issues.
1) SAME SCHEDULE EVERY WEEK?
We have a schedule of exercise classes that is the same schedule every week. We don't need people scroll to the next week.
It looks like the way to do that is to set Number of Weeks to 52, or 300 or something and then remember to extend it at the end of the year, and to hide the toolbar and the date on the weekly schedule
[ntt_schedule title="weekly" item_limit="0" general_header_toolbar="no" general_header_day="no"]
is that the best way?
2) UTC TIMES
I have my wordpress > Settings > General > Timezone: Sydney
which is 11 hours ahead of UTC
Looks like you're saving all your times in the db as UTC and converting back to the local time to display to the user, is that correct?
If so, that will cause lots of problems when we change to daylight saving time, because all the classes will then show as starting one hour later.
e.g. 01:00 UTC will show as 10am in winter and 11am in summer. I don't want that to happen. I want the classes to start at 10am all year long. Is that possible? Or do I have to create two completely different sets of events/classes one for daylight saving and one for non-daylight saving?
2) TIMES SHOWING AS UTC
When I edit a Class Open Time and Close Time, I select a time from the popup e.g. 4pm and then save, and it shows me 03:00(the UTC time) in the field and again in the popup. This becomes very confusing when editing times.
3) DAYS SHOWING AS ONE DAY EARLY
When I edit a Class and set Days of Week to [Friday] and then go to the schedule grid view, it shows the class on a Thursday.
But if I click on the class, the popup with all the info shows the date as a friday.
4) EVENT UTC TIMES
When I create an event and set the date to start at 9am. It displays on a grid at the correct day an time, but it shows it in the edit screen as the utc time 20:00 and if I save it again without changing anything it now saves it as 20:00 and shows on the display schedule grid as 8pm
4 years, 7 months ago #1096094Hi,
1,
- You can create all classes with the same opening day. eg: 3/April/2020
- Set Number of Week: 1
- You can use this option to show schedule default on a fixed day
- You can use the shortcode with these settings:
[ntt_schedule item_limit="5" show_filter="no" general_header_toolbar="no" general_header_day="no" custom_general_default_date="true" show_export="yes" general_default_date="2020-04-03"]
2,3,4. Please send me link your site and admin account (Set as private reply). I will help you check.
Best regards,
tb.
4 years, 7 months ago #1098206This reply has been marked as private.4 years, 7 months ago #1098208This reply has been marked as private.4 years, 7 months ago #1098209This reply has been marked as private.4 years, 7 months ago #1099216Hi,
I'm not sure about this but can you change the timezone from your web server and try again?
Best regards,
tb.
4 years, 7 months ago #1100229I'm on shared hosting so I can't change the time-zone on the server, but I can change it in wordpress.
Just to clarify that we are dealing with two problems:
1) classes appearing one day early. This is the most important problem!
2) times in edit screen showing in in UTC
I tried a few different timezone settings and this is what I found:
If I set timezone to New York, or any timezone that is on the west side of London, then the classes show on the correct day. But if I set it to any timezones to tthe east of London they show one day early.
But if I use a 'number of hours' timezone, like UTC -5 (which is the same as New York) then it always shows the day before. Even if I put UTC +5.
You must be handling your dates differently for Events than for Classes, because the Events always show on the correct day regardless of which timezone I set. Therefore, please do the same for Classes. That's the most important thing for now.
Thanks for your help.
4 years, 7 months ago #1102463This reply has been marked as private. -
AuthorPosts
You must be logged in and have valid license to reply to this topic.