Browse Source

Bugfix for bugfix :-)

pull/3182/head
Michael 4 years ago
parent
commit
ffeae7e048
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      include/dbm.php
  2. +1
    -1
      include/socgraph.php

+ 2
- 2
include/dbm.php View File

@ -93,9 +93,9 @@ class dbm {
* @param string $date a date string in any format
* @return string SQL style date string
*/
public static function date($date) {
public static function date($date = 'now') {
$timestamp = strtotime($date);
return date('Y-m-d H:i:s');
return date('Y-m-d H:i:s', $timestamp);
}
}
?>

+ 1
- 1
include/socgraph.php View File

@ -622,7 +622,7 @@ function poco_last_updated($profile, $force = false) {
$last_updated = "0000-00-00 00:00:00";
q("UPDATE `gcontact` SET `updated` = '%s', `last_contact` = '%s' WHERE `nurl` = '%s'",
dbesc(dbm::date($last_updated)), dbesc(datetime_convert()), dbesc(normalise_link($profile)));
dbesc(dbm::date($last_updated)), dbesc(dbm::date()), dbesc(normalise_link($profile)));
if (($gcontacts[0]["generation"] == 0))
q("UPDATE `gcontact` SET `generation` = 9 WHERE `nurl` = '%s'",


Loading…
Cancel
Save