preserve event time information when editing
This commit is contained in:
parent
9fbb8b633a
commit
85ec902cfd
8
web.go
8
web.go
|
@ -1396,9 +1396,11 @@ func edithonkpage(w http.ResponseWriter, r *http.Request) {
|
|||
templinfo["SavedPlace"] = honk.Place
|
||||
if tm := honk.Time; tm != nil {
|
||||
templinfo["ShowTime"] = ";"
|
||||
templinfo["StartTime"] = tm.StartTime.Format("2006-01-02 03:04")
|
||||
templinfo["StartTime"] = tm.StartTime.Format("2006-01-02 15:04")
|
||||
if tm.Duration != 0 {
|
||||
templinfo["Duration"] = tm.Duration
|
||||
}
|
||||
}
|
||||
templinfo["ServerMessage"] = "honk edit 2"
|
||||
templinfo["IsPreview"] = true
|
||||
templinfo["UpdateXID"] = honk.XID
|
||||
|
@ -1711,9 +1713,11 @@ func submithonk(w http.ResponseWriter, r *http.Request) *Honk {
|
|||
templinfo["SavedFile"] = donkxid
|
||||
if tm := honk.Time; tm != nil {
|
||||
templinfo["ShowTime"] = ";"
|
||||
templinfo["StartTime"] = tm.StartTime.Format("2006-01-02 03:04")
|
||||
templinfo["StartTime"] = tm.StartTime.Format("2006-01-02 15:04")
|
||||
if tm.Duration != 0 {
|
||||
templinfo["Duration"] = tm.Duration
|
||||
}
|
||||
}
|
||||
templinfo["IsPreview"] = true
|
||||
templinfo["UpdateXID"] = updatexid
|
||||
templinfo["ServerMessage"] = "honk preview"
|
||||
|
|
Loading…
Reference in New Issue