-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-22368 Use LocalDate instead of Date for MobUtil class #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java
Outdated
Show resolved
Hide resolved
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| private static LocalDate toLocalDate(long millisecond) { | ||
| return Instant.ofEpochMilli(millisecond).atZone(ZoneId.systemDefault()).toLocalDate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we retain the same behavior with the old code? By default Date will use the system default time zone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the Date class just use the JVM timezone
|
💔 -1 overall
This message was automatically generated. |
| @@ -1,5 +1,5 @@ | |||
| /** | |||
| * | |||
| * | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
|
💔 -1 overall
This message was automatically generated. |
| @@ -1,5 +1,5 @@ | |||
| /** | |||
| * | |||
| * | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Any chance of addressing the conflicts? Thanks. |
|
Close since the PR is stale and can not be merged. Feel free to reopen. |
|
Sorry, I am a little busy during last days, will continue. So reopen it. |
|
You can reopen when you have time to prepare a new patch. |
No description provided.