From 84c263c71ca1883ce05ef330ffd441feffefe6ff Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Wed, 1 Jul 2020 13:25:13 -0700 Subject: [PATCH] Fix timestamp pointer --- .../amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java index dc7911afd4d..b07cb686cc0 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/JsonMemberDeserVisitor.java @@ -252,7 +252,8 @@ public Void timestampShape(TimestampShape shape) { }); break; case EPOCH_SECONDS: - handleFloat(shape, "&smithytime.ParseEpochSeconds(f64)"); + writer.addUseImports(SmithyGoDependency.SMITHY_PTR); + handleFloat(shape, "ptr.Time(smithytime.ParseEpochSeconds(f64))"); break; default: throw new CodegenException(String.format("Unknown timestamp format %s", timestampFormat));