diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-03-02 03:03:44 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-03-02 09:16:58 +0100 |
commit | b54839b8976b5c1455c838828f2bc92cdeb178eb (patch) | |
tree | 35919484c98a541aff87622aef30bee37ef464cf /logic/minecraft/onesix/OneSixVersionFormat.cpp | |
parent | 80b81c2c1e2185b457d167d3d446ac2e1ca95579 (diff) | |
download | MultiMC-b54839b8976b5c1455c838828f2bc92cdeb178eb.tar MultiMC-b54839b8976b5c1455c838828f2bc92cdeb178eb.tar.gz MultiMC-b54839b8976b5c1455c838828f2bc92cdeb178eb.tar.lz MultiMC-b54839b8976b5c1455c838828f2bc92cdeb178eb.tar.xz MultiMC-b54839b8976b5c1455c838828f2bc92cdeb178eb.zip |
NOISSUE eliminate timestamp strings
Diffstat (limited to 'logic/minecraft/onesix/OneSixVersionFormat.cpp')
-rw-r--r-- | logic/minecraft/onesix/OneSixVersionFormat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/logic/minecraft/onesix/OneSixVersionFormat.cpp b/logic/minecraft/onesix/OneSixVersionFormat.cpp index dc9cf9c4..45eef278 100644 --- a/logic/minecraft/onesix/OneSixVersionFormat.cpp +++ b/logic/minecraft/onesix/OneSixVersionFormat.cpp @@ -162,8 +162,8 @@ VersionFilePtr OneSixVersionFormat::versionFileFromJson(const QJsonDocument &doc readString(root, "+minecraftArguments", out->addMinecraftArguments); readString(root, "type", out->type); - parse_timestamp(readStringRet(root, "releaseTime"), out->m_releaseTimeString, out->m_releaseTime); - parse_timestamp(readStringRet(root, "time"), out->m_updateTimeString, out->m_updateTime); + out->m_releaseTime = timeFromS3Time(readStringRet(root, "releaseTime")); + out->m_updateTime = timeFromS3Time(readStringRet(root, "time")); readString(root, "assets", out->assets); @@ -280,8 +280,8 @@ static QJsonDocument versionFileToJson(VersionFilePtr patch, bool saveOrder) writeString(root, "assets", patch->assets); if (patch->isMinecraftVersion()) { - writeString(root, "releaseTime", patch->m_releaseTimeString); - writeString(root, "time", patch->m_updateTimeString); + writeString(root, "releaseTime", timeToS3Time(patch->m_releaseTime)); + writeString(root, "time", timeToS3Time(patch->m_updateTime)); } writeStringList(root, "tweakers", patch->overwriteTweakers); writeStringList(root, "+tweakers", patch->addTweakers); |