Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Ability to set the timezone cron/ofelia will run in

未关闭
#54 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker

调研方向

首先检查 docker-compose-custom.yml 和 ee-cron-scheduler 服务配置,了解 cron/ofelia 容器是如何定义的。将其时区相关设置与 PHP 服务示例进行比较,然后确认计划任务使用配置的 Australia/Melbourne 时区,而不是 UTC。

由索引模型根据 Issue 内容生成。

描述

I can't see any way to set the timezone that the cron/ofelia container is using.

For other containers, i.e. php, I can set this in docker-compose-custom.yml, i.e.

version: '3.5'

services:

  php:
    environment:
      - TZ=Australia/Melbourne
    volumes:
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"

There should be some way to do this for the cron/ofelia container, since this Ofelia ticket suggests that it does respect TZ environment variable if set.

My server is in Australia/Melbourne, as are most of the containers - except for ee-cron-scheduler which appears to still be in UTC+0, which is lame as I'd like everything to be using the same timezone.

Hope there is a way!

主要语言
PHP
星标
4
派生
8
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EasyEngine/cron-command 的其他 Issue

查看 EasyEngine/cron-command 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。