/[CvsGraph]/cvsgraph/cvsgraph.c
ViewVC logotype

Diff of /cvsgraph/cvsgraph.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.47, Sun Aug 29 12:20:03 2004 UTC revision 1.48, Thu Sep 23 20:29:01 2004 UTC
# Line 1049  Line 1049 
1049          time_t t;          time_t t;
1050          char *buf;          char *buf;
1051          int nbuf;          int nbuf;
1052            char *env;
1053    
1054          memset(&tm, 0, sizeof(tm));          memset(&tm, 0, sizeof(tm));
1055          n = sscanf(d, "%d.%d.%d.%d.%d.%d",          n = sscanf(d, "%d.%d.%d.%d.%d.%d",
# Line 1057  Line 1058 
1058          tm.tm_mon--;          tm.tm_mon--;
1059          if(tm.tm_year > 1900)          if(tm.tm_year > 1900)
1060                  tm.tm_year -= 1900;                  tm.tm_year -= 1900;
1061          t = mktime(&tm) - timezone;  
1062            env = getenv("TZ");
1063            putenv("TZ=UTC0");
1064            t = mktime(&tm);
1065            if(env)
1066                    setenv("TZ", env, 1);
1067            else
1068                    unsetenv("TZ");
1069    
1070          if(n != 6 || t == (time_t)(-1))          if(n != 6 || t == (time_t)(-1))
1071          {          {
1072                  add_string_str("<invalid date>");                  add_string_str("<invalid date>");

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0