@@ -475,7 +475,7 @@ func downloadFile(ctx *context.Context, fileFilter stringSet, fileKey string) {
475475 }
476476 defer s .Close ()
477477
478- ctx .ServeStream ( s , pf .Name )
478+ ctx .ServeContent ( pf . Name , s , pf .CreatedUnix . AsLocalTime () )
479479}
480480
481481// DeleteRecipeV1 deletes the requested recipe(s)
@@ -723,7 +723,7 @@ func listRevisions(ctx *context.Context, revisions []*conan_model.PropertyValue)
723723
724724 revs := make ([]* revisionInfo , 0 , len (revisions ))
725725 for _ , rev := range revisions {
726- revs = append (revs , & revisionInfo {Revision : rev .Value , Time : time . Unix ( int64 ( rev .CreatedUnix ), 0 )})
726+ revs = append (revs , & revisionInfo {Revision : rev .Value , Time : rev .CreatedUnix . AsLocalTime ( )})
727727 }
728728
729729 jsonResponse (ctx , http .StatusOK , & RevisionList {revs })
@@ -743,7 +743,7 @@ func LatestRecipeRevision(ctx *context.Context) {
743743 return
744744 }
745745
746- jsonResponse (ctx , http .StatusOK , & revisionInfo {Revision : revision .Value , Time : time . Unix ( int64 ( revision .CreatedUnix ), 0 )})
746+ jsonResponse (ctx , http .StatusOK , & revisionInfo {Revision : revision .Value , Time : revision .CreatedUnix . AsLocalTime ( )})
747747}
748748
749749// LatestPackageRevision gets the latest package revision
@@ -760,7 +760,7 @@ func LatestPackageRevision(ctx *context.Context) {
760760 return
761761 }
762762
763- jsonResponse (ctx , http .StatusOK , & revisionInfo {Revision : revision .Value , Time : time . Unix ( int64 ( revision .CreatedUnix ), 0 )})
763+ jsonResponse (ctx , http .StatusOK , & revisionInfo {Revision : revision .Value , Time : revision .CreatedUnix . AsLocalTime ( )})
764764}
765765
766766// ListRecipeRevisionFiles gets a list of all recipe revision files
0 commit comments