EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

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


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

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@ulcc.ac.uk

 

The University of London is an exempt charity in England and Wales and a charity registered in Scotland (reg. no. SC041194)

----