Implementation of DayTableEmbargoSetter.java not working as expected.
---------------------------------------------------------------------

                 Key: DS-775
                 URL: https://jira.duraspace.org/browse/DS-775
             Project: DSpace
          Issue Type: Code Task
          Components: DSpace API
    Affects Versions: 1.7.0
            Reporter: Tim Ribaric
            Priority: Major
         Attachments: DayTableEmbargoSetter_mod.java

The original implementation of DayTableEmbargoSetter.java worked by grabbing 
the system time in milliseconds computing the embargo period in milliseconds 
adding the two and then casting into a Date.  For whatever reason this never 
calculates correctly in all the test cases I attempted.  I rewrote a few lines 
of the class to instead use a Calendar offset to figure out the Lift Date.  I 
think this is a more reliable implementation but I'm happy to hear what others 
say.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to