Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a8a8895f
authored
May 15, 2025
by
熊鹏飞
1
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设置时区为美国达拉斯时区
parent
e051c831
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/GlobalTimeZoneConfig.java
xxl-job-admin/src/main/java/com/xxl/job/admin/GlobalTimeZoneConfig.java
0 → 100644
View file @
a8a8895f
package
com
.
xxl
.
job
.
admin
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Profile
;
import
java.util.TimeZone
;
@Configuration
public
class
GlobalTimeZoneConfig
{
public
GlobalTimeZoneConfig
()
{
// 设置整个Java虚拟机的默认时区
TimeZone
.
setDefault
(
TimeZone
.
getTimeZone
(
"America/Chicago"
));
}
}
\ No newline at end of file
熊鹏飞
@xiongpf
mentioned in commit
ed0aadb7
Sep 18, 2025
mentioned in commit
ed0aadb7
mentioned in commit ed0aadb7d8cb01e165d21ecac4a3bdd766d814b4
Toggle commit list
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