We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b847325 + fdfdaf7 commit 153e5f5Copy full SHA for 153e5f5
1 file changed
frontend/components/bookmark/CreateSubscription/EventTypeSelector.tsx
@@ -144,7 +144,12 @@ const EventTypeSelector: React.FC<EventTypeSelectorProps> = ({
144
granularity="day"
145
placeholderValue={now("Asia/Taipei")}
146
value={until ? parseAbsoluteToLocal(sanitizeDate(until)) : null}
147
- onChange={(date) => onUntilChange(date?.toString() || null)}
+ onChange={(date) => {
148
+ if (date) {
149
+ onUntilChange(date.toString().split("[Asia/Taipei]")[0]);
150
+ console.log("Selected Until Date:", date.toString().split("[Asia/Taipei]")[0]);
151
+ }
152
+ }}
153
disableAnimation={true} // 解決錯誤
154
/>
155
</div>
0 commit comments