no GMT_TIMESTAMP() in mysql - use UTC_TIMESTAMP() instead
This commit is contained in:
parent
e0c6ee2082
commit
1b70ac1bc0
@ -89,7 +89,7 @@ function poller_run($argv, $argc){
|
|||||||
// This should be rare
|
// This should be rare
|
||||||
|
|
||||||
$r = q("select xchan_photo_l, xchan_hash from xchan where xchan_photo_l != '' and xchan_photo_m = ''
|
$r = q("select xchan_photo_l, xchan_hash from xchan where xchan_photo_l != '' and xchan_photo_m = ''
|
||||||
and xchan_photo_date < GMT_TIMESTAMP() - INTERVAL 1 DAY");
|
and xchan_photo_date < UTC_TIMESTAMP() - INTERVAL 1 DAY");
|
||||||
if($r) {
|
if($r) {
|
||||||
require_once('include/photo/photo_driver.php');
|
require_once('include/photo/photo_driver.php');
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-06-05.335
|
2013-06-06.336
|
||||||
|
Reference in New Issue
Block a user