Skip to content

Commit

Permalink
Fixed: change ISO date to datestamp format in ISIS databases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilson Moura committed Nov 5, 2013
1 parent 9c1d2fa commit 2dd3fa9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/isis-oai-provider/lib/ISISItem.php
Expand Up @@ -23,6 +23,9 @@ function GetId() {
function GetDatestamp()
{
if ($this->datestamp == NULL) { $this->datestamp = date("Y-m-d"); }
if (date('Y-m-d', strtotime($this->datestamp)) != $this->datestamp) {
$this->datestamp = date('Y-m-d', strtotime($this->datestamp));
}
return $this->datestamp;
}

Expand Down

0 comments on commit 2dd3fa9

Please sign in to comment.