Title: Message Title
|
|
Applied this patch. >>> From 0d558319fd61360d95a541daa301df0600b5a5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Melo?= <jm...@lyncode.com> Date: Wed, 27 Nov 2013 20:03:55 +0000 Subject: [PATCH] Solr Timezone Issue fixed --- dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java b/dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java index ddfdbe3..dd69ff9 100644 --- a/dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java +++ b/dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java @@ -7,13 +7,14 @@ */ package org.dspace.xoai.util; +import org.apache.log4j.LogManager; +import org.apache.log4j.Logger; + import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; - -import org.apache.log4j.LogManager; -import org.apache.log4j.Logger; +import java.util.TimeZone; /** * @@ -33,8 +34,8 @@ public static String formatToSolr(Date date, boolean init) // 2008-01-01T00:00:00Z SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.'000Z'"); if (!init) sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.'999Z'"); + sdf.setTimeZone(TimeZone.getTimeZone("UTC")); String ret = sdf.format(date); - System.out.println(ret); return ret; } -- 1.8.5.1 >>> And get this error. >>> Feedback from Open Archives .... still a problem :( -----Original Message----- From: Apache [mailto:apa...@victoria01.serverfarm.cornell.edu] Sent: 10 February 2014 11:49 AM To: SU e-Research Repository / US e-Navorsingsbewaarplek Subject: OAI Validation (step 2): http://scholar.sun.ac.za/oai/request We received a request to validate (but not register) the following repository: Base URL: http://scholar.sun.ac.za/oai/request adminEmail: scho...@sun.ac.za Complete log available at http://www.openarchives.org/Register/ValidateSite?log=10061 .............................................................................. Unfortunately your repository did not validate at version 2.0 of the OAI-PMH according to our OAI protocol conformance tester. The errors received during testing are listed below. [1] ListRecords response gave a noRecordsMatch error when it should have included at least the record with identifier oai:scholar.sun.ac.za:10019.1/255. The from and until parameters of the request were set to the datestamp of this record (2011-06-23T08:15:02Z). The from and until parameters are inclusive, see protocol spec section 2.7.1. The message included in the error response was: 'No matches for the query' >>>
|
|
|
|
|
|
|
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel