diff --git a/VRCImageHelper/Core/ImageProcess.cs b/VRCImageHelper/Core/ImageProcess.cs index 5bf42a7..8849f66 100644 --- a/VRCImageHelper/Core/ImageProcess.cs +++ b/VRCImageHelper/Core/ImageProcess.cs @@ -163,8 +163,6 @@ private static bool WriteMetadata(string path, string destPath, State state) { "-overwrite_original", "-codedcharacterset=utf8", - $"-:CreateDate={state.CreationDate}", - $"-:DateTimeOriginal={state.CreationDate}", $"-:ImageDescription={desc}", $"-:Description={desc}", $"-:Comment={desc}", @@ -173,13 +171,20 @@ private static bool WriteMetadata(string path, string destPath, State state) $"-:Keywords={state.RoomInfo.World_name};{string.Join(';', state.Players)}" }; + var offset = ""; if (DateTime.TryParseExact(state.CreationDate, "yyyy:MM:dd HH:mm:ss", CultureInfo.CurrentCulture, DateTimeStyles.None, out var dT)) { - var offset = TimeZoneInfo.Local.GetUtcOffset(dT); - var sign = offset > TimeSpan.Zero ? "+" : ""; - args.Add($"-:OffsetTime={sign}{offset}"); + var offsetSpan = TimeZoneInfo.Local.GetUtcOffset(dT); + var sign = offsetSpan > TimeSpan.Zero ? "+" : ""; + offset = sign + offsetSpan.ToString(); + args.Add($"-:OffsetTime={offset}"); + args.Add($"-:DateCreated={dT:yyyy:MM:dd}:"); + args.Add($"-:TimeCreated={dT:HH:mm:ss}{offset}"); } + args.Add($"-:CreateDate={state.CreationDate}{offset}"); + args.Add($"-:DateTimeOriginal={state.CreationDate}{offset}"); + if (state.VL2Enabled) { args.Add("-:Make=logilabo");