You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2020/07/28 16:27:43 UTC
[openoffice] branch trunk updated: java.util.Calendar's HOUR is a
12 hour clock, use HOUR_OF_DAY instead.
This is an automated email from the ASF dual-hosted git repository.
damjan pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7b7d1fc java.util.Calendar's HOUR is a 12 hour clock, use HOUR_OF_DAY instead.
7b7d1fc is described below
commit 7b7d1fc921ba2302ad7151595f2580263add807a
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Tue Jul 28 18:26:23 2020 +0200
java.util.Calendar's HOUR is a 12 hour clock, use HOUR_OF_DAY instead.
Patch by: me
---
test/testuno/source/fvt/uno/sd/file/CheckFileProperties.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testuno/source/fvt/uno/sd/file/CheckFileProperties.java b/test/testuno/source/fvt/uno/sd/file/CheckFileProperties.java
index 4c7ce94..8e169a5 100644
--- a/test/testuno/source/fvt/uno/sd/file/CheckFileProperties.java
+++ b/test/testuno/source/fvt/uno/sd/file/CheckFileProperties.java
@@ -187,7 +187,7 @@ public class CheckFileProperties {
currentDateTime.Month = (short)(ca.get(Calendar.MONTH) + 1);
currentDateTime.Day = (short)ca.get(Calendar.DATE);
currentDateTime.Minutes = (short)ca.get(Calendar.MINUTE);
- currentDateTime.Hours = (short)ca.get(Calendar.HOUR);
+ currentDateTime.Hours = (short)ca.get(Calendar.HOUR_OF_DAY);
currentDateTime.Seconds = (short)ca.get(Calendar.SECOND);
return currentDateTime;