Created
December 19, 2011 22:06
-
-
Save arturo-c/1499116 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/www/sites/all/modules/contrib/fullcalendar/fullcalendar.module b/www/sites/all/modules/contrib/fullcalendar/fullcalendar.module | |
index 121ac43..c2fc7e3 100644 | |
--- a/www/sites/all/modules/contrib/fullcalendar/fullcalendar.module | |
+++ b/www/sites/all/modules/contrib/fullcalendar/fullcalendar.module | |
@@ -186,6 +186,10 @@ function theme_fullcalendar_classname($node) { | |
* Pass settings to JavaScript. | |
*/ | |
function template_preprocess_views_view_fullcalendar(&$vars) { | |
+ $timezone = date_default_timezone_name(); | |
+ $dateTime = new DateTime(); | |
+ $dateTime->setTimeZone(new DateTimeZone($timezone)); | |
+ $vars['timezone'] = $dateTime->format('T'); | |
$settings = array( | |
'defaultView' => $vars['options']['display']['fc_view'], | |
'firstDay' => $vars['options']['display']['fc_firstday'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment