Skip to content

Commit

Permalink
Merge pull request #2 from fermi-lat/tz_fix
Browse files Browse the repository at this point in the history
merge Tz fix
  • Loading branch information
jasercion authored Oct 20, 2018
2 parents 1fae807 + 0918670 commit 8f2dd90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/test_tip_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,21 @@ int main() {
}

try {
time_t local_time;
time(&local_time);
struct tm*time_info = localtime(&local_time);

struct tm some_time;
some_time.tm_sec = 12;
some_time.tm_min = 12;
some_time.tm_hour = 11;
some_time.tm_hour = 12;
some_time.tm_mday = 14;
some_time.tm_mon = 6;
some_time.tm_year = 104;
some_time.tm_wday = 3;
some_time.tm_yday = 195;
some_time.tm_isdst = 0;
some_time.tm_isdst = time_info->tm_isdst;


time_t made_time = mktime(&some_time);
if (-1 == made_time) {
Expand Down

0 comments on commit 8f2dd90

Please sign in to comment.