revert include time in imported posts

in favor of library side generation to support zip files
This commit is contained in:
Rob Loranger 2019-08-21 13:12:56 -07:00
parent 9dbf14c05e
commit 4acd35f8cd
No known key found for this signature in database
GPG key ID: D6F1633A4F0903B8

View file

@ -9,7 +9,6 @@ import (
"os"
"path/filepath"
"strings"
"time"
"github.com/hashicorp/go-multierror"
"github.com/writeas/impart"
@ -110,12 +109,10 @@ func handleImport(app *App, u *User, w http.ResponseWriter, r *http.Request) err
}
}
coll.hostName = app.cfg.App.Host
created := info.ModTime().Truncate(time.Second).UTC().Format("2006-01-02T15:04:05Z")
submittedPost := SubmittedPost{
Title: &post.Title,
Content: &post.Content,
Font: "norm",
Created: &created,
}
rp, err := app.db.CreatePost(u.ID, coll.ID, &submittedPost)
if err != nil {