Add Temporal::utcNow()

pull/501/head
Hypolite Petovan 2018-01-25 23:28:13 -05:00
parent 6d23de1bdb
commit e4f32f8ac8
5 changed files with 16 additions and 16 deletions

View File

@ -69,7 +69,7 @@ function public_server_cron($a,$b) {
]); ]);
q("update user set expire_notification_sent = '%s' where uid = %d", q("update user set expire_notification_sent = '%s' where uid = %d",
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
intval($rr['uid']) intval($rr['uid'])
); );
} }

View File

@ -871,7 +871,7 @@ function pumpio_dounlike(&$a, $uid, $self, $post, $own_id) {
} }
$r = q("UPDATE `item` SET `deleted` = 1, `unseen` = 1, `changed` = '%s' WHERE `verb` = '%s' AND `uid` = %d AND `contact-id` = %d AND `thr-parent` = '%s'", $r = q("UPDATE `item` SET `deleted` = 1, `unseen` = 1, `changed` = '%s' WHERE `verb` = '%s' AND `uid` = %d AND `contact-id` = %d AND `thr-parent` = '%s'",
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(ACTIVITY_LIKE), dbesc(ACTIVITY_LIKE),
intval($uid), intval($uid),
intval($contactid), intval($contactid),
@ -1002,7 +1002,7 @@ function pumpio_get_contact($uid, $contact, $no_insert = false) {
`location`, `about`, `writable`, `blocked`, `readonly`, `pending` ) `location`, `about`, `writable`, `blocked`, `readonly`, `pending` )
VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)", VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)",
intval($uid), intval($uid),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc($contact->url), dbesc($contact->url),
dbesc(normalise_link($contact->url)), dbesc(normalise_link($contact->url)),
dbesc(str_replace("acct:", "", $contact->id)), dbesc(str_replace("acct:", "", $contact->id)),

View File

@ -936,7 +936,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
`location`, `about`, `writable`, `blocked`, `readonly`, `pending` ) `location`, `about`, `writable`, `blocked`, `readonly`, `pending` )
VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0 ) ", VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0 ) ",
intval($uid), intval($uid),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc($contact->statusnet_profile_url), dbesc($contact->statusnet_profile_url),
dbesc(normalise_link($contact->statusnet_profile_url)), dbesc(normalise_link($contact->statusnet_profile_url)),
dbesc(statusnet_address($contact)), dbesc(statusnet_address($contact)),
@ -977,7 +977,7 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
dbesc($photos[0]), dbesc($photos[0]),
dbesc($photos[1]), dbesc($photos[1]),
dbesc($photos[2]), dbesc($photos[2]),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
intval($contact_id) intval($contact_id)
); );
} else { } else {
@ -1008,9 +1008,9 @@ function statusnet_fetch_contact($uid, $contact, $create_user)
dbesc($photos[0]), dbesc($photos[0]),
dbesc($photos[1]), dbesc($photos[1]),
dbesc($photos[2]), dbesc($photos[2]),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc($contact->statusnet_profile_url), dbesc($contact->statusnet_profile_url),
dbesc(normalise_link($contact->statusnet_profile_url)), dbesc(normalise_link($contact->statusnet_profile_url)),
dbesc(statusnet_address($contact)), dbesc(statusnet_address($contact)),

View File

@ -72,7 +72,7 @@ function testdrive_cron($a,$b) {
]); ]);
q("update user set expire_notification_sent = '%s' where uid = %d", q("update user set expire_notification_sent = '%s' where uid = %d",
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
intval($rr['uid']) intval($rr['uid'])
); );

View File

@ -1017,7 +1017,7 @@ function twitter_fetch_contact($uid, $contact, $create_user)
`location`, `about`, `writable`, `blocked`, `readonly`, `pending`) `location`, `about`, `writable`, `blocked`, `readonly`, `pending`)
VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)", VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', '%s', %d, 0, 0, 0)",
intval($uid), intval($uid),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc("https://twitter.com/" . $contact->screen_name), dbesc("https://twitter.com/" . $contact->screen_name),
dbesc(normalise_link("https://twitter.com/" . $contact->screen_name)), dbesc(normalise_link("https://twitter.com/" . $contact->screen_name)),
dbesc($contact->screen_name."@twitter.com"), dbesc($contact->screen_name."@twitter.com"),
@ -1061,9 +1061,9 @@ function twitter_fetch_contact($uid, $contact, $create_user)
dbesc($photos[0]), dbesc($photos[0]),
dbesc($photos[1]), dbesc($photos[1]),
dbesc($photos[2]), dbesc($photos[2]),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
intval($contact_id) intval($contact_id)
); );
} }
@ -1096,9 +1096,9 @@ function twitter_fetch_contact($uid, $contact, $create_user)
dbesc($photos[0]), dbesc($photos[0]),
dbesc($photos[1]), dbesc($photos[1]),
dbesc($photos[2]), dbesc($photos[2]),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc(Temporal::convert()), dbesc(Temporal::utcNow()),
dbesc("https://twitter.com/".$contact->screen_name), dbesc("https://twitter.com/".$contact->screen_name),
dbesc(normalise_link("https://twitter.com/".$contact->screen_name)), dbesc(normalise_link("https://twitter.com/".$contact->screen_name)),
dbesc($contact->screen_name."@twitter.com"), dbesc($contact->screen_name."@twitter.com"),