Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-AMF
Commits
28def4c4
Commit
28def4c4
authored
Feb 17, 2022
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify time zone
parent
bdcd5f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/amf-app/amf_n1.cpp
src/amf-app/amf_n1.cpp
+11
-7
No files found.
src/amf-app/amf_n1.cpp
View file @
28def4c4
...
...
@@ -2258,7 +2258,7 @@ void amf_n1::registration_complete_handle(uint32_t ran_ue_ngap_id,
time_t
tt
;
time
(
&
tt
);
tt
=
tt
+
8
*
3600
;
// transform the time zone
//
tt = tt + 8 * 3600; // transform the time zone
tm
*
t
=
gmtime
(
&
tt
);
uint8_t
conf
[
38
]
=
{
0
};
...
...
@@ -2279,12 +2279,16 @@ void amf_n1::registration_complete_handle(uint32_t ran_ue_ngap_id,
uint8_t
time_zone
[
2
]
=
{
0x46
,
0x23
};
uint8_t
time
[
8
]
=
{
0
};
time
[
0
]
=
0x47
;
time
[
1
]
=
0x12
;
time
[
2
]
=
((
t
->
tm_mon
+
1
)
&
0x0f
)
<<
4
|
((
t
->
tm_mon
+
1
)
&
0xf0
)
>>
4
;
time
[
3
]
=
((
t
->
tm_mday
+
1
)
&
0x0f
)
<<
4
|
((
t
->
tm_mday
+
1
)
&
0xf0
)
>>
4
;
time
[
4
]
=
((
t
->
tm_hour
+
1
)
&
0x0f
)
<<
4
|
((
t
->
tm_hour
+
1
)
&
0xf0
)
>>
4
;
time
[
5
]
=
((
t
->
tm_min
+
1
)
&
0x0f
)
<<
4
|
((
t
->
tm_min
+
1
)
&
0xf0
)
>>
4
;
time
[
6
]
=
((
t
->
tm_sec
+
1
)
&
0x0f
)
<<
4
|
((
t
->
tm_sec
+
1
)
&
0xf0
)
>>
4
;
time
[
1
]
=
((
t
->
tm_year
%
10
)
&
0x0f
)
<<
4
|
((
t
->
tm_year
/
10
%
10
)
&
0x0f
);
time
[
2
]
=
(((
t
->
tm_mon
+
1
)
%
10
)
&
0x0f
)
<<
4
|
(((
t
->
tm_mon
+
1
)
/
10
%
10
)
&
0x0f
);
time
[
3
]
=
((
t
->
tm_mday
%
10
)
&
0x0f
)
<<
4
|
((
t
->
tm_mday
/
10
%
10
)
&
0x0f
);
time
[
4
]
=
((
t
->
tm_hour
%
10
)
&
0x0f
)
<<
4
|
((
t
->
tm_hour
/
10
%
10
)
&
0x0f
);
time
[
5
]
=
((
t
->
tm_min
%
10
)
&
0x0f
)
<<
4
|
((
t
->
tm_min
/
10
%
10
)
&
0x0f
);
time
[
6
]
=
((
t
->
tm_sec
%
10
)
&
0x0f
)
<<
4
|
((
t
->
tm_sec
/
10
%
10
)
&
0x0f
);
time
[
7
]
=
0x23
;
uint8_t
daylight
[
3
]
=
{
0x49
,
0x01
,
0x00
};
memcpy
(
conf
,
header
,
3
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment