UPF Recovery Time Stamp value (Bug report)

Hello,

I am currently studying 3GC and am using the Free5gc code.
I ran test.sh and found that the wrong IE values were set.

In the association setup request/response test, SMF is correctly sending the Recovery Time Stamp.
However, UPF did not.

therefore checked the UPF code to find the cause associated with this bug.

In UPF, the Recovery Time Stamp is kept as Unix time (starting at 1970/1/1 0:0:0).
In 3gpp, the recovery timestamp is defined as a value starting 1900/1/1.
Therefore, the wrong date/time was set.

In the SMF code, it was correctly made to be seconds from 1900/1/1.

This bug seems to be easily fixed by modifying the UPF context.c.

Thank you in advance for your cooperation.
Sorry for my English. I am Japanese ^^;

Hello,
I submitted a PR fixing this bug. Thank you again for the bug report :slight_smile:
I have tested the fix on my side and it seems to work well. Could you confirm it works also for you?

Hi, @micnosliw
since there hasn’t been any replies from you, this topic is closed by admin.
If you have further questions about this topic, please create another topic.
Thanks.