Skip to content

Commit dd1b354

Browse files
committed
Get time from UserSystemClock to fix issue if NetworkSystemClock is not set
1 parent a4815b5 commit dd1b354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ int main(int argc, char* argv[]) {
9595
}
9696

9797
time_t currentTime;
98-
Result rs = timeGetCurrentTime(TimeType_NetworkSystemClock, (u64*)&currentTime);
98+
Result rs = timeGetCurrentTime(TimeType_UserSystemClock, (u64*)&currentTime);
9999
if (R_FAILED(rs)) {
100100
printf("timeGetCurrentTime failed with %x", rs);
101101
return consoleExitWithMsg("");

0 commit comments

Comments
 (0)