projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c954f2d
)
small bugfix regarding dc formatted time
author
zapata
<zapata>
Fri, 5 Jul 2002 13:39:01 +0000
(13:39 +0000)
committer
zapata
<zapata>
Fri, 5 Jul 2002 13:39:01 +0000
(13:39 +0000)
source/mir/util/DateToMapAdapter.java
patch
|
blob
|
history
diff --git
a/source/mir/util/DateToMapAdapter.java
b/source/mir/util/DateToMapAdapter.java
index
54c7374
..
cd77de1
100755
(executable)
--- a/
source/mir/util/DateToMapAdapter.java
+++ b/
source/mir/util/DateToMapAdapter.java
@@
-17,7
+17,9
@@
public class DateToMapAdapter extends AbstractMap {
try {
// ML: quick fix to allow for the dc encoding now...
if (((String) aKey).equals("dc")) {
- return StringUtil.date2w3DateTime(new GregorianCalendar());
+ GregorianCalendar calendar = new GregorianCalendar();
+ calendar.setTime(date);
+ return StringUtil.date2w3DateTime(calendar);
}
else
return new SimpleDateFormat((String) aKey).format(date);