radioco.apps.radioco package¶
Subpackages¶
Submodules¶
radioco.apps.radioco.context_processors module¶
radioco.apps.radioco.test_utils module¶
radioco.apps.radioco.tz_utils module¶
-
class
radioco.apps.radioco.tz_utils.
GMT
(seconds)[source]¶ Bases:
dateutil.tz.tz.tzoffset
GMT implementation, it has a fixed offset
-
radioco.apps.radioco.tz_utils.
fix_recurrence_date
(start_dt, dt)[source]¶ Fix for django-recurrence 1.3 rdates and exdates needs a datetime, we are combining the date with the time from start_date.
Return: A datetime in the default timezone with the offset required to work in the recurrence
-
radioco.apps.radioco.tz_utils.
fix_recurrence_dst
(dt)[source]¶ Fix for django-recurrence 1.3 Function to fix a datetime tz aware with an incorrect offset
Returns: A datetime in the same timezone but with the offset fixed
-
radioco.apps.radioco.tz_utils.
get_active_timezone
()[source]¶ Same method as timezone.get_current_timezone but returning utc if nothing was set
-
radioco.apps.radioco.tz_utils.
recurrence_after
(recurrence, after_dt, start_dt)[source]¶ Fix for django-recurrence 1.3 Avoid outputting a impossible dt
-
radioco.apps.radioco.tz_utils.
recurrence_before
(recurrence, before_dt, start_dt)[source]¶ Fix for django-recurrence 1.3 Avoid outputting a impossible dt