MCPcopy Create free account
hub / github.com/codecombat/codecombat / buildValueForDisplay

Method buildValueForDisplay

app/core/treema-ext.js:53–59  ·  view source on GitHub ↗
(el, data)

Source from the content-addressed store, hash-verified

51 }
52
53 buildValueForDisplay (el, data) {
54 if (/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)/.test(data)) {
55 // Handle weird string date formatting by first parsing to date
56 data = new Date(data)
57 }
58 return el.text(moment(data).format('llll'))
59 }
60
61 buildValueForEditing (valEl) {
62 return this.buildValueForEditingSimply(valEl, null, 'date')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected