mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-16 12:09:07 +00:00
rtc: Fix date parsing detection. (#3524)
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
This commit is contained in:
parent
3af5a6b1bf
commit
43b72b59a2
@ -748,10 +748,10 @@ int PS4_SYSV_ABI sceRtcParseDateTime(OrbisRtcTick* pTickUtc, const char* pszDate
|
|||||||
|
|
||||||
std::string dateTimeString = std::string(pszDateTime);
|
std::string dateTimeString = std::string(pszDateTime);
|
||||||
|
|
||||||
char formatKey = dateTimeString[22];
|
char formatKey = dateTimeString[19];
|
||||||
OrbisRtcDateTime dateTime;
|
OrbisRtcDateTime dateTime;
|
||||||
|
|
||||||
if (formatKey == 'Z' || formatKey == '-' || formatKey == '+') {
|
if (formatKey == 'Z' || formatKey == '-' || formatKey == '+' || formatKey == '.') {
|
||||||
// RFC3339
|
// RFC3339
|
||||||
sceRtcParseRFC3339(pTickUtc, pszDateTime);
|
sceRtcParseRFC3339(pTickUtc, pszDateTime);
|
||||||
} else if (formatKey == ':') {
|
} else if (formatKey == ':') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user