Commit 059e9f7
CRITICAL FIX: Restore correct timezone handling for form scheduling
🐛 Critical Timezone Fix:
- Simplified and corrected convertFormatToTime() method in FormSettings.php
- Ensure forms disable at correct LOCAL time, not UTC
- Fix 2-hour shift issue that was reintroduced
- Use proper WordPress timezone handling with fallback
This fixes the core issue where forms would disable 2 hours early
due to incorrect UTC/local time conversion. Now forms disable
exactly at the time specified in the admin interface.1 parent 3bf6562 commit 059e9f7
1 file changed
Lines changed: 7 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 70 | | |
84 | | - | |
| 71 | + | |
| 72 | + | |
85 | 73 | | |
86 | 74 | | |
87 | 75 | | |
88 | 76 | | |
89 | 77 | | |
90 | | - | |
| 78 | + | |
91 | 79 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
96 | 84 | | |
97 | 85 | | |
98 | 86 | | |
| |||
0 commit comments