Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fan123199 committed Jan 29, 2018
1 parent 98bbfc0 commit c2c0cce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
script: "./gradlew assembleDebug"
deploy:
provider: releases
api_key:
Expand All @@ -34,5 +35,4 @@ deploy:
skip_cleanup: true
on:
tags: true
repo: fan123199/V2ex-simple
script: "./gradlew assembleDebug"

3 changes: 2 additions & 1 deletion app/src/main/java/im/fdx/v2ex/utils/TimeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ object TimeUtil {
_created *= 1000

// DateFormat format = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.MEDIUM, Locale.CHINA);
val format1 = SimpleDateFormat("yyyy/MM/dd")
val format1 = SimpleDateFormat("yyyy/MM/dd", Locale.US)
format1.timeZone = TimeZone.getTimeZone("GMT+8:00")
return format1.format(_created)
}

Expand Down

0 comments on commit c2c0cce

Please sign in to comment.