Skip to content

Commit

Permalink
Fix misdetection of incorrect timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Feb 22, 2018
1 parent f2b1bf5 commit 04cf969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ bool load_tz(std::string tzstr, cctz::time_zone& tz) {
if (tzstr.size() == 0) {
// CCTZ doesn't work on windows https://github.com/google/cctz/issues/53
/* std::cout << "Local TZ: " << local_tz() << std::endl; */
cctz::load_time_zone(local_tz(), &tz);
return cctz::load_time_zone(local_tz(), &tz);
} else {
if (!cctz::load_time_zone(tzstr, &tz)) {
auto el = TZMAP.find(tzstr);
Expand All @@ -126,8 +126,8 @@ bool load_tz(std::string tzstr, cctz::time_zone& tz) {
return false;
}
}
return true;
}
return true;
}

// [[Rcpp::export]]
Expand Down

0 comments on commit 04cf969

Please sign in to comment.