Created
May 2, 2016 22:38
-
-
Save eishay/9860846aed906c00c0cc74132db2bcb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy val currentVersion: ServiceVersion = current.mode match { | |
case Mode.Test = ServiceVersion("Test mode service") | |
case _ = ServiceVersion(io.Source.fromURL(Play.resource("app_version.txt").get).mkString) | |
} | |
lazy val compilationTime: DateTime = current.mode match { | |
case Mode.Test = currentDateTime | |
case _ = | |
val timeStr = io.Source.fromURL(Play.resource("app_compilation_date.txt").get).mkString | |
DateTimeFormat.forPattern("E, dd MMM yyyy HH:mm:ss Z") | |
.withLocale(Locale.ENGLISH) | |
.withZone(zones.PT).parseDateTime(timeStr) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment