Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
service-campaign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Ha
service-campaign
Commits
267b9d95
Commit
267b9d95
authored
Sep 13, 2019
by
=
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hungtt-commit fix timzoneUtils
parent
1057211b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/main/java/com/viettel/campaign/utils/TimeZoneUtils.java
src/main/java/com/viettel/campaign/utils/TimeZoneUtils.java
+1
-4
No files found.
src/main/java/com/viettel/campaign/utils/TimeZoneUtils.java
View file @
267b9d95
...
...
@@ -5,14 +5,11 @@
*/
package
com.viettel.campaign.utils
;
import
org.apache.log4j.Logger
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.TimeZone
;
import
java.util.concurrent.TimeUnit
;
import
java.util.logging.Level
;
/**
*
...
...
@@ -86,7 +83,7 @@ public class TimeZoneUtils {
public
static
String
toDateStringWithTimeZone
(
Date
date
,
TimeZone
tz
){
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"dd/MM/yyyy HH:mm:ss"
);
sdf
.
setTimeZone
(
tz
);
return
sdf
.
format
(
date
);
return
date
==
null
?
null
:
sdf
.
format
(
date
);
}
public
static
TimeZone
getZone
(
Long
timeZone
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment