Skip to content

Commit 153e5f5

Browse files
authored
Merge pull request #90 from nccu-cloud-native-group6/hotfix/-fixed-time-summary
Fix/Until time error
2 parents b847325 + fdfdaf7 commit 153e5f5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/components/bookmark/CreateSubscription/EventTypeSelector.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ const EventTypeSelector: React.FC<EventTypeSelectorProps> = ({
144144
granularity="day"
145145
placeholderValue={now("Asia/Taipei")}
146146
value={until ? parseAbsoluteToLocal(sanitizeDate(until)) : null}
147-
onChange={(date) => onUntilChange(date?.toString() || null)}
147+
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+
}}
148153
disableAnimation={true} // 解決錯誤
149154
/>
150155
</div>

0 commit comments

Comments
 (0)