projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_notify_recur.php
[Pman.Core]
/
DataObjects
/
Core_notify_recur.php
diff --git
a/DataObjects/Core_notify_recur.php
b/DataObjects/Core_notify_recur.php
index
24325bb
..
5c9f471
100644
(file)
--- a/
DataObjects/Core_notify_recur.php
+++ b/
DataObjects/Core_notify_recur.php
@@
-115,9
+115,8
@@
class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
foreach($usedays as $d){
foreach($hours as $h){
foreach($usedays as $d){
foreach($hours as $h){
- print_r(date_default_timezone_get());exit;
$date = new DateTime($d. ' ' . $h, new DateTimeZone($this->tz));
$date = new DateTime($d. ' ' . $h, new DateTimeZone($this->tz));
- $date->setTimezone(new DateTimeZone(
ini_get('date.timezone'
)));
+ $date->setTimezone(new DateTimeZone(
date_default_timezone_get(
)));
$ret[] = $date->format('Y-m-d H:i:s');
}
}
$ret[] = $date->format('Y-m-d H:i:s');
}
}
@@
-128,7
+127,7
@@
class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
{
//DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->tableName());
{
//DB_DataObject::debugLevel(1);
$w = DB_DataObject::factory($this->tableName());
-
//
$w->id = 117;
+ $w->id = 117;
$w->find();
while($w->fetch()){
$w->find();
while($w->fetch()){
@@
-143,7
+142,7
@@
class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
$notifytimes = $this->notifyTimes(2);
$notifytimes = $this->notifyTimes(2);
-
////print_R($notifytimes)
;
+
// print_R($notifytimes);exit
;
$newSearch = DB_DataObject::factory('core_notify');
$newSearch->whereAdd( 'act_start > NOW()');
$newSearch = DB_DataObject::factory('core_notify');
$newSearch->whereAdd( 'act_start > NOW()');
@@
-167,12
+166,14
@@
class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
unset($old[$time]);
continue;
}
unset($old[$time]);
continue;
}
+ print_R($time);exit;
if (strtotime($time) < time()) {
// will not get deleted..
//echo "SKIP BEFORE NOW";
unset($old[$time]);
continue;
}
if (strtotime($time) < time()) {
// will not get deleted..
//echo "SKIP BEFORE NOW";
unset($old[$time]);
continue;
}
+
// do not have a notify event... creat it..
$add = DB_DataObject::factory('core_notify');
$add->setFrom(array(
// do not have a notify event... creat it..
$add = DB_DataObject::factory('core_notify');
$add->setFrom(array(