Skip to content

Commit

Permalink
Had to add timezone to avoid warning on dev box
Browse files Browse the repository at this point in the history
  • Loading branch information
bremonline committed Oct 27, 2014
1 parent 0a17f06 commit cbe6fa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload/upload3.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ function add_all_relatives($relatives) {
// Cause of Death, BirthDate or Estimated Age
$date_of_birth = g($r->relationshipHolder->birthTime['value']);
if (strlen($date_of_birth) == 4) {
date_default_timezone_set('America/Los_Angeles');
$current_year = date("Y");
$age = $current_year - $date_of_birth;
$new_relative['age'] = $age;
Expand Down

0 comments on commit cbe6fa3

Please sign in to comment.