Difference between revisions of "ACTA:SetNetworkTime"

From 3dbrew
Jump to navigation Jump to search
 
Line 17: Line 17:
 
The timestamp format is milliseconds elapsed since 01.01.2000 00:00:00 UTC.
 
The timestamp format is milliseconds elapsed since 01.01.2000 00:00:00 UTC.
  
Using this command will affect the [[ACT_Services#DataBlocks|<code>Difference between server time and device UTC time (in nanoseconds)</code> field (BlkID 0x4)]].
+
Using this command will affect the [[ACT_Services#DataBlocks|<code>Difference between server time and UTC device time (in nanoseconds)</code> field (BlkID 0x4)]].
  
 
This only works in debug mode (when [[Config_Savegame#Configuration_blocks|Configuration Block]] 0x00130000 is set to 0x100).
 
This only works in debug mode (when [[Config_Savegame#Configuration_blocks|Configuration Block]] 0x00130000 is set to 0x100).

Latest revision as of 13:01, 24 January 2025

Request[edit]

Index Word Description
0
Header 0x042E0080 Cmd 0x042E Param 2 Xlat 0
1-2 s64, Custom server time timestamp

Response[edit]

Index Word Description
0
Header 0x042F0040 Cmd 0x042F Param 1 Xlat 0
1 Result code

Description[edit]

Sets the internal network time field. Usually, this is obtained from the X-Nintendo-Date header in HTTP responses from the account server.

The timestamp format is milliseconds elapsed since 01.01.2000 00:00:00 UTC.

Using this command will affect the Difference between server time and UTC device time (in nanoseconds) field (BlkID 0x4).

This only works in debug mode (when Configuration Block 0x00130000 is set to 0x100).