aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-11-07 08:55:38 +0100
committerSem <sembrestels@riseup.net>2012-11-07 08:55:38 +0100
commit23d6fc3f778b3986490e46a64e73f9da795c939d (patch)
treeb2819d914cafb55ff1d91843079ecf0295f542f2
parente2203e7aae84ec772eb61621a199be4bb7b32f0c (diff)
downloadelgg-23d6fc3f778b3986490e46a64e73f9da795c939d.tar.gz
elgg-23d6fc3f778b3986490e46a64e73f9da795c939d.tar.bz2
Using GMT timezone since input/date is using gmdate().
-rw-r--r--models/model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.php b/models/model.php
index 9edfbc760..b51b2ccbc 100644
--- a/models/model.php
+++ b/models/model.php
@@ -106,11 +106,11 @@ function event_calendar_set_event_from_form($event_guid,$group_guid) {
//$event->munged_start_date_string = $start_date_text." ".date_default_timezone_get();*/
// TODO: is the timezone bit necessary?
- $event->start_date = strtotime($start_date_text." ".date_default_timezone_get());
+ $event->start_date = strtotime($start_date_text." GMT");
$end_date_text = trim(get_input('end_date',''));
//$event->original_end_date = get_input('end_date');
if ($end_date_text) {
- $event->end_date = strtotime($end_date_text." ".date_default_timezone_get());
+ $event->end_date = strtotime($end_date_text." GMT");
//$event->munged_end_date_string = $end_date_text." ".date_default_timezone_get();
} else {
$event->end_date = '';