Remove Timezone bullshit
This commit is contained in:
@@ -136,13 +136,7 @@ public class TLWMatchesUpdaterFootball extends TLWMatchesManagerBase {
|
||||
{
|
||||
for(APIFootballMatch apiFootballMatch : apiFootballMatches) {
|
||||
TLWMatch tlwMatch = getMatchingMatch(apiFootballMatch, tlwMatches);
|
||||
OffsetDateTime offsetDateTime = OffsetDateTime.parse(apiFootballMatch.getMatchDateTime());
|
||||
ZonedDateTime now = ZonedDateTime.now();
|
||||
ZoneOffset offsetNow = now.getOffset();
|
||||
OffsetDateTime fixedDatetime = offsetDateTime.withOffsetSameInstant(offsetNow);
|
||||
String newMatchTime = fixedDatetime.toString();
|
||||
|
||||
tlwMatch.setMatchDateTime(newMatchTime.replace("T", " ").substring(0, 16) + ":00");
|
||||
tlwMatch.setMatchDateTime(apiFootballMatch.getMatchDateTime().replace("T", " ").substring(0, 19));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user