* localtime.cc (tzload): Implement setting __tzrule's offset member
using newlib's __gettzinfo () interface also when tzload returns successfully.
This commit is contained in:
@@ -859,6 +859,10 @@ tzload(const char *name, struct state *sp)
|
||||
}
|
||||
}
|
||||
}
|
||||
__gettzinfo ()->__tzrule[0].offset
|
||||
= -sp->ttis[1].tt_gmtoff;
|
||||
__gettzinfo ()->__tzrule[1].offset
|
||||
= -sp->ttis[0].tt_gmtoff;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user