Fix: Timezone is now set properly

This commit is contained in:
Duy Tran Khanh committed 2023-01-15 05:12:10 +07:00
1 parent 652316e8f6
commit 495e8cb9d0
1 file changed
+1
+1
View File
@@ -180,6 +180,7 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi
getenv("BUNDLE_PATH")].UTF8String;
margv[++margc] = [NSString stringWithFormat:@"-Duser.dir=%s", getenv("POJAV_GAME_DIR")].UTF8String;
margv[++margc] = [NSString stringWithFormat:@"-Duser.home=%s", getenv("POJAV_HOME")].UTF8String;
margv[++margc] = [NSString stringWithFormat:@"-Duser.timezone=%@", NSTimeZone.localTimeZone.name].UTF8String;
margv[++margc] = [NSString stringWithFormat:@"-DUIScreen.maximumFramesPerSecond=%d", (int)UIScreen.mainScreen.maximumFramesPerSecond].UTF8String;
margv[++margc] = "-Dorg.lwjgl.system.allocator=system";
margv[++margc] = "-Dlog4j2.formatMsgNoLookups=true";