Permalink
Browse files

Fix for bug #274 - the code was modifying the timestamp for the DST o…

…ffset, even though the DateTime object already took care of that
  • Loading branch information...
1 parent a67c94b commit 8c3ac28217afc482e4ae03b68fa4765daf682ad6 @stevecoug stevecoug committed Mar 7, 2013
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/system/application/controllers/talk.php
@@ -274,13 +274,7 @@ function add($id = null, $opt = null)
$this->input->post('given_min'), $talk_timezone
);
- // how much wrong will ->format("U") be if I do it now,
- // due to DST changes?
- // only needed until PHP Bug #51051 delivers a better method
- $unix_offset1 = $talk_timezone->getOffset($talk_datetime);
- $unix_offset2 = $talk_timezone->getOffset(new DateTime());
- $unix_correction = $unix_offset1 - $unix_offset2;
- $unix_timestamp = $talk_datetime->format("U") - $unix_correction;
+ $unix_timestamp = $talk_datetime->format("U");
$arr = array(
'talk_title' => $this->input->post('talk_title'),

0 comments on commit 8c3ac28

Please sign in to comment.