DataInventory
Changes
start/hooks.js 5(+5 -0)
Details
start/hooks.js 5(+5 -0)
diff --git a/start/hooks.js b/start/hooks.js
index 601322c..09387e8 100644
--- a/start/hooks.js
+++ b/start/hooks.js
@@ -7,4 +7,9 @@ hooks.after.providersBooted(() => {
View.global('APP_URL', function () {
return Env.get('APP_URL')
})
+
+ View.global('TO_LOCALE', function (d) {
+ var d = new Date(d)
+ return d.toLocaleDateString()
+ })
})
\ No newline at end of file