[MME] [AMF] Set Daylight Saving Time (#2766)

Fix DST always being set to 0 ("No adjustment for Daylight
Saving Time").

Related: 3GPP TS 24.008 § 10.5.3.12
This commit is contained in:
Oliver Smith 2023-12-06 12:24:33 +01:00 committed by GitHub
parent 177e561ba8
commit 66c39f2085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -596,6 +596,9 @@ ogs_pkbuf_t *gmm_build_configuration_update_command(
configuration_update_command->presencemask |=
OGS_NAS_5GS_CONFIGURATION_UPDATE_COMMAND_NETWORK_DAYLIGHT_SAVING_TIME_PRESENT;
network_daylight_saving_time->length = 1;
if (local.tm_isdst > 0) {
network_daylight_saving_time->value = 1;
}
}
}

View File

@ -347,6 +347,9 @@ int emm_handle_attach_complete(
emm_information->presencemask |=
OGS_NAS_EPS_EMM_INFORMATION_NETWORK_DAYLIGHT_SAVING_TIME_PRESENT;
network_daylight_saving_time->length = 1;
if (local.tm_isdst > 0) {
network_daylight_saving_time->value = 1;
}
}
emmbuf = nas_eps_security_encode(mme_ue, &message);