mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 13:19:00 +00:00
rtc: Fix date parsing detection. (#3524)
This commit is contained in:
@@ -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 == ':') {
|
||||||
|
|||||||
Reference in New Issue
Block a user