Setting starttime and endtime for a mission
Posted: Sun May 24, 2026 1:03 am
I've noticed something has changed with how dates are being handled. This line of lua used to work before the previous update:
ScenEdit_SetMission('RUSSIA', 'PHASE1 - SEAD', { isactive = false, starttime = '08/29/2024 00:00:01' });
The starttime now no longer gets set properly.
I checked the documentation and see theres a new date and time section so i tried copying the example:
local test = ScenEdit_GetMission('RUSSIA', 'PHASE1 - SEAD');
test.starttime = '2025-06-09 1:30:00!yyyy-MM-dd HH:mm:ss';
test.endtime = '2027-06-09 1:30:00!yyyy-MM-dd HH:mm:ss';
print(ScenEdit_GetMission('RUSSIA', 'PHASE1 - SEAD'));
Output:
mission {
guid = 'YCUWHY-0HNLP4J6J6LOP',
name = 'PHASE1 - SEAD',
side = 'RUSSIA',
type = 'Patrol',
subtype = 'SEAD Patrol',
isactive = 'True',
starttime = '',
endtime = '',
SISH = 'False',
aar = 'table',
unitlist = 'table',
}
The dates do not get updated.
What is the correct way to update start/end dates for missions?
ScenEdit_SetMission('RUSSIA', 'PHASE1 - SEAD', { isactive = false, starttime = '08/29/2024 00:00:01' });
The starttime now no longer gets set properly.
I checked the documentation and see theres a new date and time section so i tried copying the example:
local test = ScenEdit_GetMission('RUSSIA', 'PHASE1 - SEAD');
test.starttime = '2025-06-09 1:30:00!yyyy-MM-dd HH:mm:ss';
test.endtime = '2027-06-09 1:30:00!yyyy-MM-dd HH:mm:ss';
print(ScenEdit_GetMission('RUSSIA', 'PHASE1 - SEAD'));
Output:
mission {
guid = 'YCUWHY-0HNLP4J6J6LOP',
name = 'PHASE1 - SEAD',
side = 'RUSSIA',
type = 'Patrol',
subtype = 'SEAD Patrol',
isactive = 'True',
starttime = '',
endtime = '',
SISH = 'False',
aar = 'table',
unitlist = 'table',
}
The dates do not get updated.
What is the correct way to update start/end dates for missions?