It seems G++ 8/9/10 doesn't like time-related functions in addons, at least on linux
/.../sdk/add_on/scriptfile/scriptfilesystem.cpp:551:23: error: invalid conversion from ‘__time_t’ {aka ‘long int’} to ‘const time_t*’ {aka ‘const long int*’} [-fpermissive]
tm *t = localtime(st.st_ctime);
^
While VS2019 compiles just fine, it fails tests for datetime addon
3>AngelScript version: 2.35.0 WIP
3>AngelScript options: AS_WIN AS_X86
...
3>--- Assert failed ---
3>func: void ExecuteString()
3>mdle: (null)
3>sect: ExecuteString
3>line: 1
3>---------------------
3>Failed on line 68 in C:\...\sdk\tests\test_feature\source\test_addon_datetime.cpp
3>--- Assert failed ---
3>func: void ExecuteString()
3>mdle: (null)
3>sect: ExecuteString
3>line: 1
3>---------------------
3>Failed on line 105 in C:\...\sdk\tests\test_feature\source\test_addon_datetime.cpp
Note: when re-running the test, for some reason fail at line 68 showed up only once while fail at line 105 shows up every time oO