You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
close #64
This commit is contained in:
@@ -135,9 +135,13 @@ func parseCompleteFile() ([]byte, int, error) {
|
||||
// Removes the main content from the rest of the frontmatter
|
||||
delete(data.Content, "content")
|
||||
|
||||
if _, ok := data.Content["date"]; ok {
|
||||
data.Content["date"] = data.Content["date"].(string) + ":00"
|
||||
}
|
||||
|
||||
// Schedule the post
|
||||
if data.Schedule {
|
||||
t := cast.ToTime(data.Content["date"].(string))
|
||||
t := cast.ToTime(data.Content["date"])
|
||||
|
||||
scheduler := cron.New()
|
||||
scheduler.AddFunc(t.In(time.Now().Location()).Format("05 04 15 02 01 *"), func() {
|
||||
|
||||
Reference in New Issue
Block a user