主要修复: 1. 时间存储格式统一使用 UTC 时区 - HomePage.tsx: 修复 formDate 处理,使用 new Date() 自动转换 - 解决用户设置"14:00"保存后显示"22:00"问题 2. 重复计算函数统一使用 UTC - calculateNextDueDate: 使用 getUTC*() 和 Date.UTC() - calculateReminderTimes: 使用 UTC 时间计算提醒点 - getReminderValueFromTimes: 使用 UTC 时间戳反推选项 3. 修复重复提醒创建时继承 reminder_times - createNextRecurringEventData: 根据新日期重新计算 reminder_times - 修改接口类型支持 reminder_times 为 null - 解决原提醒"提前15分钟"新提醒变"准时"问题 影响: - 提醒时间显示正确(无时区偏差) - 跨天/跨月提醒计算正确 - 重复提醒自动创建时正确继承提醒设置 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
Description
Languages
TypeScript
95.1%
JavaScript
3.4%
CSS
1.2%
HTML
0.3%