MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getPublishTime

Function getPublishTime

setting/console_setting/validation.go:214–223  ·  view source on GitHub ↗
(item map[string]interface{})

Source from the content-addressed store, hash-verified

212}
213
214func getPublishTime(item map[string]interface{}) time.Time {
215 if v, ok := item["publishDate"]; ok {
216 if s, ok2 := v.(string); ok2 {
217 if t, err := time.Parse(time.RFC3339, s); err == nil {
218 return t
219 }
220 }
221 }
222 return time.Time{}
223}
224
225func GetAnnouncements() []map[string]interface{} {
226 list := getJSONList(GetConsoleSetting().Announcements)

Callers 1

GetAnnouncementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected