alireza0:S-UI 日历流量重置用全局 cron,单用户保持日计数

alireza0 说明,按 VPS 账期重置应用于整台服务器,可用全局 Reset All Traffic cron,并遵循面板时区;日期宜选一至二十八,短月份跳过不存在的日期,不支持 L。单用户 Reset Days 有意保留从启用日起计数,用于各自独立周期。

作者原文

Thanks for the request. What you describe is already available as a global setting, since a VPS billing cycle applies to the whole server, not to one client.

Go to Settings → Interface → Reset All Traffic (cron) and enter a cron schedule, for example:

| Schedule | Effect |
|---|---|
| 0 0 1 * * | Resets all clients' traffic at 00:00 on the 1st of every month |
| 0 0 15 * * | Resets on the 15th of every month |
| 0 0 1 */3 * | Resets every 3 months, on the 1st |

The schedule follows the panel's time zone setting, so set that to match your provider.

[!NOTE]
Pick a day from 1 to 28. A day like 31 is skipped in shorter months, and the "last day of month" syntax (L) is not supported.

The per-client Reset Days option stays a day counter on purpose. It suits setups where each client has its own cycle starting from when it was enabled (see #1340). For calendar-based resets, use the global cron above.

Please check #1157 and the release notes before opening a feature request. This one was added in v1.5.0.