Skip to content

Commit

Permalink
[MME] [AMF] Set Daylight Saving Time (open5gs#2766)
Browse files Browse the repository at this point in the history
Fix DST always being set to 0 ("No adjustment for Daylight
Saving Time").

Related: 3GPP TS 24.008 § 10.5.3.12
  • Loading branch information
osmith42 authored Dec 6, 2023
1 parent 177e561 commit 66c39f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amf/gmm-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/mme/emm-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 66c39f2

Please sign in to comment.