mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 04:15:26 +03:00
Replaced all 1900 with TM_YEAR_BASE
This commit is contained in:
parent
6378c97b33
commit
37ea272bd4
15 changed files with 23 additions and 23 deletions
|
@ -141,7 +141,7 @@ static int luaGetDateTime(lua_State * L)
|
|||
{
|
||||
struct gtm utm;
|
||||
gettime(&utm);
|
||||
luaPushDateTime(L, utm.tm_year + 1900, utm.tm_mon + 1, utm.tm_mday, utm.tm_hour, utm.tm_min, utm.tm_sec);
|
||||
luaPushDateTime(L, utm.tm_year + TM_YEAR_BASE, utm.tm_mon + 1, utm.tm_mday, utm.tm_hour, utm.tm_min, utm.tm_sec);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue