From 3dca514255b97388b4deeffa0900fdd1107c35de Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 08 Mar 2007 17:34:05 +0000
Subject: [PATCH] Update the UTC Time attribute syntax so that it correctly uses two-digit years instead of four-digit years. Also, update other parts of the server that made reference to UTC times when they really meant "YYYYMMDDhhmmssZ" to the term "GMT" instead of "UTC" so there is no confusion about whether the year would be expressed in four digits or two.
---
opends/src/server/org/opends/server/backends/task/Task.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/task/Task.java b/opends/src/server/org/opends/server/backends/task/Task.java
index 5dee531..15dbf67 100644
--- a/opends/src/server/org/opends/server/backends/task/Task.java
+++ b/opends/src/server/org/opends/server/backends/task/Task.java
@@ -202,7 +202,7 @@
SimpleDateFormat dateFormat;
if (timeString.endsWith("Z"))
{
- dateFormat = new SimpleDateFormat(DATE_FORMAT_UTC_TIME);
+ dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT_TIME);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
}
else
@@ -236,7 +236,7 @@
SimpleDateFormat dateFormat;
if (timeString.endsWith("Z"))
{
- dateFormat = new SimpleDateFormat(DATE_FORMAT_UTC_TIME);
+ dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT_TIME);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
}
else
@@ -270,7 +270,7 @@
SimpleDateFormat dateFormat;
if (timeString.endsWith("Z"))
{
- dateFormat = new SimpleDateFormat(DATE_FORMAT_UTC_TIME);
+ dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT_TIME);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
}
else
@@ -629,7 +629,7 @@
ATTR_TASK_ACTUAL_START_TIME);
}
- SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_UTC_TIME);
+ SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT_TIME);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
Date d = new Date(actualStartTime);
ASN1OctetString s = new ASN1OctetString(dateFormat.format(d));
@@ -689,7 +689,7 @@
DirectoryServer.getDefaultAttributeType(ATTR_TASK_COMPLETION_TIME);
}
- SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_UTC_TIME);
+ SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT_TIME);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
Date d = new Date(completionTime);
ASN1OctetString s = new ASN1OctetString(dateFormat.format(d));
--
Gitblit v1.10.0