EPrints Technical Mailing List Archive
Message: #00721
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Wrong date in lift_embargos
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Wrong date in lift_embargos
- From: Jose Martin <J.Martin@ulcc.ac.uk>
- Date: Thu, 14 Jun 2012 13:39:01 +0000
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@ulcc.ac.uk To ensure you receive the full benefits of the repositories service please remember to cc
repositories@ulcc.ac.uk The University of London is an exempt charity in England and Wales and a charity registered in Scotland (reg. no.
SC041194) ---- |
- Prev by Date: [EP-tech] Re: Sitemap / time error
- Next by Date: [EP-tech] Upgrading REF2014 plugin issues
- Previous by thread: [EP-tech] summary_page.xml - grouping documents
- Next by thread: [EP-tech] Upgrading REF2014 plugin issues
- Index(es):