mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
fix year while generating struct tm
This commit is contained in:
parent
ca69e1e882
commit
a7b30813f1
@ -175,6 +175,7 @@ int a1time::ymdg(struct tm *tm, int *g) const
|
||||
ret = ymdg(&tm->tm_year, &tm->tm_mon, &tm->tm_mday,
|
||||
&tm->tm_hour, &tm->tm_min, &tm->tm_sec, g);
|
||||
tm->tm_mon--;
|
||||
tm->tm_year -= 1900;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user