Skip to content

Commit

Permalink
Фикс парса timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
yurvon-screamo committed Apr 3, 2024
1 parent a179e0f commit b7ce2c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Protoc.Gateway/Internal/ProtobufTimeResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class DurationConverter : JsonConverter
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
{
Duration duration = (Duration?)value ?? Duration.FromTimeSpan(TimeSpan.MinValue);
writer.WriteValue(duration.ToString());
writer.WriteValue(duration.ToTimeSpan().ToString());
}

public override object? ReadJson(JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
Expand Down
2 changes: 1 addition & 1 deletion Protoc.Gateway/Protoc.Gateway.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RootNamespace>Protoc.Gateway</RootNamespace>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>0.0.2</Version>
<Version>0.0.3</Version>
<RepositoryUrl>https://github.com/BergenIt/Protoc.Gateway</RepositoryUrl>
</PropertyGroup>

Expand Down

0 comments on commit b7ce2c2

Please sign in to comment.