Skip to content

Commit

Permalink
Merge: pull request #180 from TEAM-Workit/fix/jungbin/#179-Write-Time…
Browse files Browse the repository at this point in the history
…zone

Fix: 기록하기 시 시간 잘못 들어가는 버그 수정
  • Loading branch information
dev-jungbin committed Jun 5, 2023
2 parents e6f5d57 + a6d8a17 commit 4e6f6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Projects/App/Sources/Screens/Write/WriteViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ final class WriteViewController: BaseViewController {
title: self.workTextField.text ?? "",
projectId: self.selectedProjectId,
description: self.workDescriptionTextView.text,
date: self.dateButton.date(),
date: (self.dateButton.date().toString(type: .dot).toDate(type: .dot) ?? Date()) + 60,
abilityIds: self.createAbilityIdList(
hardList: self.selectedHardAbilityList,
softList: self.selectedSoftAbilityList
Expand Down Expand Up @@ -447,7 +447,6 @@ final class WriteViewController: BaseViewController {

extension WriteViewController: SingleDayCalendarBottomSheetDelegate {
func sendSelectedSingleDay(_ date: Date) {
print(date)
self.dateButton.setDate(date: date)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extension WKTextFieldStyleButton {

if style == Style.withCalendarStyle {
self.setCalendarImageLayout()
self.setDate(date: Date())
self.setDate(date: Date().toString(type: .dot).toDate(type: .dot) ?? Date())
}
}

Expand Down

0 comments on commit 4e6f6a8

Please sign in to comment.