diff options
author | Vlad Uspensky <v.uspenskiy@icloud.com> | 2017-03-16 11:36:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-16 11:36:26 -0700 |
commit | 22ecb961a02cafa594f4cf5133c9d3862c7cd750 (patch) | |
tree | 803d183de18d2b67672b03227d7d0df1bdd197f9 /src/main/scala/xyz/driver/core/time.scala | |
parent | 6ae573387e623912a164d3e35e2c79065434d978 (diff) | |
parent | be262d8b985470e24adc924ca1f4d2b83fca744c (diff) | |
download | driver-core-22ecb961a02cafa594f4cf5133c9d3862c7cd750.tar.gz driver-core-22ecb961a02cafa594f4cf5133c9d3862c7cd750.tar.bz2 driver-core-22ecb961a02cafa594f4cf5133c9d3862c7cd750.zip |
Merge pull request #25 from drivergroup/month-formatv0.10.29
Add month format and expose month constructor
Diffstat (limited to 'src/main/scala/xyz/driver/core/time.scala')
-rw-r--r-- | src/main/scala/xyz/driver/core/time.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/time.scala b/src/main/scala/xyz/driver/core/time.scala index cbb86ed..ed5eb11 100644 --- a/src/main/scala/xyz/driver/core/time.scala +++ b/src/main/scala/xyz/driver/core/time.scala @@ -30,7 +30,7 @@ object time { def toDate(timezone: TimeZone): date.Date = { val cal = Calendar.getInstance(timezone) cal.setTimeInMillis(millis) - date.Date(cal.get(Calendar.YEAR), date.tagMonth(cal.get(Calendar.MONTH)), cal.get(Calendar.DAY_OF_MONTH)) + date.Date(cal.get(Calendar.YEAR), date.Month(cal.get(Calendar.MONTH)), cal.get(Calendar.DAY_OF_MONTH)) } } |