Skip to content

Commit 301b353

Browse files
committed
timezone hotfix
1 parent 6002557 commit 301b353

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/mavonie/subterminal/Utils/Date/DateFormat.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package mavonie.subterminal.Utils.Date;
22

33
import java.text.SimpleDateFormat;
4+
import java.util.TimeZone;
45

56
/**
67
* Created by mavon on 17/10/16.
@@ -18,6 +19,8 @@ public static String dateTimeNow() {
1819
java.text.SimpleDateFormat sdf =
1920
new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
2021

22+
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
23+
2124
return sdf.format(dt);
2225
}
2326
}

0 commit comments

Comments
 (0)