[EP-tech] Wrong date in lift_embargos
Jose Martin
J.Martin at ulcc.ac.uk
Thu Jun 14 14:39:01 BST 2012
Hi all,
Linking with the Sitemap / time error date issue, the same problem seems to exist in the bin/lift_embargos script (3.3.6).
The following line:
my $date = sprintf("-%04d-%02d-%02d", EPrints::Time::get_date_array( time ) );
will store in $date the value "-1970-01-01". This leads to no embargos being lifted!
Another quick workaround for this is just deleting the 'time' parameter. This:
my $date = sprintf("-%04d-%02d-%02d", EPrints::Time::get_date_array() );
will effectively use today's date.
Cheers,
Jose.
----
Jose Martin
Digital Repositories Specialist
Digital Archives & Repositories
University of London Computer Centre
Senate House | Malet Street | London | WC1E 7HU
t: +44 (0)20 7863 1342
e: J.Martin at ulcc.ac.uk
w: http://www.ulcc.ac.uk/
b: http://dablog.ulcc.ac.uk/
To ensure you receive the full benefits of the repositories service please remember to cc repositories at ulcc.ac.uk<mailto:repositories at ulcc.ac.uk>
The University of London is an exempt charity in England and Wales and a charity registered in Scotland (reg. no. SC041194)
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120614/7bd35ee8/attachment-0001.html
More information about the Eprints-tech
mailing list