Closed botanicvelious closed 5 years ago
So it should be something like? :- {% load ctz %}
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&showPrint=0&showCalendars=0&height=600&wkst=1&bgcolor=%23FFFFFF&src=uhambjin8qdb9af4vt03c4djg4%40group.calendar.google.com&color=%23853104&ctz=
{% ctz %}" style="border-width:0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
Exactly!
Working on this issue.
So, the user shouldn't be provided with the option to give anything as input ? Instead, we need to form a logic to detect and display in his/her timezone?
That is correct, the users timezone should be auto detected
So, the user shouldn't be provided with the option to give anything as input ? Instead, we need to form a logic to detect and display in his/her timezone?
That would be too easy option to go with. Then we only need a drop-down to select timezones.
We do not want the user to have to select the timezone, it should be automatic.
This task is to make a template tag item that will display the calendar in the local time of the user. There are 2 examples below, you would need to support the entire list of timezones.
GMT -7 MST example
GMT -8 PST example
Basically just need to change the value of "ctz="
to get and set the timezone see https://docs.djangoproject.com/en/2.1/topics/i18n/timezones/