mirror of
				https://github.com/open5gs/open5gs.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	[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:
		| @@ -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; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user