summaryrefslogtreecommitdiff
path: root/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2014-11-09 23:11:06 -0800
committerLi Haoyi <haoyi@dropbox.com>2014-11-09 23:11:06 -0800
commitaaea4afbf3b47d623f396cb1eae247fa92053032 (patch)
treed462a508e545d5ec3637557b632cd0b7366e56cd /examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala
parent52306f10ce3d1e462b171688de04b37174c0b74a (diff)
downloadhands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.tar.gz
hands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.tar.bz2
hands-on-scala-js-aaea4afbf3b47d623f396cb1eae247fa92053032.zip
.
Diffstat (limited to 'examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala')
-rw-r--r--examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala
index ee2f5da..35ebe1d 100644
--- a/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala
+++ b/examples/crossBuilds/simple/js/src/main/scala/simple/Platform.scala
@@ -4,12 +4,12 @@ import scala.scalajs.js
object Platform extends js.JSApp{
def format(ts: Long) = {
- new js.Date(ts).toLocaleString()
+ new js.Date(ts).toISOString()
}
def main() = {
val times = Seq(
- System.currentTimeMillis(),
- System.currentTimeMillis() + 1000
+ 0L,
+ 1L << 32
)
println("Running on JS! " + 1.0d)
println(Simple.formatTimes(times))