Skip to content

Commit

Permalink
release calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu10 committed Nov 28, 2024
1 parent e111d97 commit ed50cdd
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 97 deletions.
4 changes: 2 additions & 2 deletions regular/calendars_alert.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
require_once(__DIR__.'/../app/register.php');
\date_default_timezone_set('PRC');
\date_default_timezone_set('Asia/Shanghai');

$date = date('Y-m-d H:i:s');
$params = array('le' => array('next_time' => $date), 'ne' => array('status' => '2'));
Expand All @@ -15,7 +15,7 @@
if (!empty($calendar->get_remark())) {
$content .= '<p>备注:</p><p><blockquote>' . $calendar->get_remark() . '</blockquote></p>';
}
CalendarAlertService::send_mail($subject, '[email protected]', $content);
CalendarAlertService::send_mail($subject, '[email protected]', $content, 1);
}
CalendarAlertService::update_next_alert_time($calendar->get_id());
}
Expand Down
2 changes: 1 addition & 1 deletion regular/remind_after_comment.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
require_once(__DIR__.'/../app/register.php');
\date_default_timezone_set('PRC');
\date_default_timezone_set('Asia/Shanghai');

$date = date('Y-m-d H:i:s');
$params = array('eq' => array('reminded' => 0));
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_once (__DIR__.'/../app/register.php');


\date_default_timezone_set('PRC');
\date_default_timezone_set('Asia/Shanghai');

$options = getopt('i:');

Expand Down
File renamed without changes.
80 changes: 0 additions & 80 deletions tools/earnings_loader.php

This file was deleted.

File renamed without changes.
File renamed without changes.
12 changes: 0 additions & 12 deletions tools/set_authcode.php

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/lunar/LunarHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class LunarHelper
* @throws Exception
*/
public static function getNextAlert($entity) {
\date_default_timezone_set('PRC');
\date_default_timezone_set('Asia/Shanghai');
if ($entity->get_status() != 1 && $entity->get_status() != 0) {
return self::$defaultString;
}
Expand Down

0 comments on commit ed50cdd

Please sign in to comment.