mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +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);
|
||||
|
||||
char formatKey = dateTimeString[22];
|
||||
char formatKey = dateTimeString[19];
|
||||
OrbisRtcDateTime dateTime;
|
||||
|
||||
if (formatKey == 'Z' || formatKey == '-' || formatKey == '+') {
|
||||
if (formatKey == 'Z' || formatKey == '-' || formatKey == '+' || formatKey == '.') {
|
||||
// RFC3339
|
||||
sceRtcParseRFC3339(pTickUtc, pszDateTime);
|
||||
} else if (formatKey == ':') {
|
||||
|
||||
Reference in New Issue
Block a user