mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41e41d34d1
commit
af328b152b
13 changed files with 109 additions and 43 deletions
5
time.c
5
time.c
|
@ -328,11 +328,6 @@ make_time_t(tptr, utc_or_local)
|
|||
tm = localtime(&guess);
|
||||
if (!tm) goto error;
|
||||
guess -= tm->tm_gmtoff;
|
||||
tm = localtime(&guess);
|
||||
if (!tm) goto error;
|
||||
if (tm->tm_hour != tptr->tm_hour) {
|
||||
guess += (tptr->tm_hour - tm->tm_hour)*3600;
|
||||
}
|
||||
#else
|
||||
struct tm gt, lt;
|
||||
long tzsec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue