Skip to content

Commit

Permalink
chore: use UTC instead of local time
Browse files Browse the repository at this point in the history
  • Loading branch information
rk132 committed May 21, 2024
1 parent f74d52b commit 9ed907a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/Core/Scripts/Operations/MetadataDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ private static bool ShouldUpdateAvatarFile(AvatarContext context)
{
return true;
}
var avatarFileUpdateTime = File.GetLastWriteTime(context.AvatarUri.LocalModelPath);
return avatarFileUpdateTime < context.Metadata.UpdatedAt.ToLocalTime();
var avatarFileUpdateTime = File.GetLastWriteTimeUtc(context.AvatarUri.LocalModelPath);
return avatarFileUpdateTime < context.Metadata.UpdatedAt;
}

/// <summary>
Expand Down

0 comments on commit 9ed907a

Please sign in to comment.