clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
zendevil 2021-03-06T05:14:21.228700Z

added the extra

.
But still not seeing the full date like so: “March 20, 2021”

valtteri 2021-03-06T08:05:21.233900Z

dateStyle is not supported in Safari. You need to use something else. Google closure library surely has utils for this.

2021-03-06T08:08:15.234100Z

Ah. Fallback option could be Google closure https://google.github.io/closure-library/api/goog.i18n.DateTimeFormat.html that might have what you need.

2021-03-06T06:49:17.228800Z

in http://app.klipse.tech/, paste in top left box

(->
       (js/Intl.DateTimeFormat. "en-US"
                               #js {:dateStyle "full" :timeStyle "long"})
       (.format (js/Date.)))
shows
"Saturday, March 6, 2021 at 6:46:29 AM GMT"
which looks right afaik.

zendevil 2021-03-06T07:06:47.229Z

@henryw374 when I put the following in the app, I get “3/6/2021”

zendevil 2021-03-06T07:06:58.229200Z

zendevil 2021-03-06T07:29:37.229400Z

shows “Saturday, March 6, 2021 at 12:58:25 PM GMT+5:30” in chrome but 3/6/2021 in safari and react native

zendevil 2021-03-06T07:29:43.229600Z

how to fix this?

Jakub Holý 2021-03-06T15:07:30.235600Z

Hello! What needs to be true for a macro to be self-host compatible? My quick search did not reveal any good answer.... Thank you!

thheller 2021-03-06T15:13:56.236900Z

it must not use any CLJ JVM specific code. thats about it.

👍 2
❤️ 1