Skip to content

Commit

Permalink
Fix timestamp pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
JordonPhillips committed Jul 1, 2020
1 parent c75a30e commit 84c263c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 84c263c

Please sign in to comment.