Skip to content

Commit

Permalink
タイムゾーン指定の理由をコメント
Browse files Browse the repository at this point in the history
  • Loading branch information
askldfghj committed Jan 30, 2024
1 parent 20d1730 commit f1c68d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios-training-bjungTests/ios_training_bjungTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ final class ios_training_bjungTests: XCTestCase {
func testMapperJsonEncoder() throws {
// Setup
var calendar = Calendar(identifier: .gregorian)
// GitHub Actions でタイムゾーンを指定する必要がある
calendar.timeZone = TimeZone(identifier: "Asia/Tokyo")!
let date = calendar.date(from: DateComponents(year: 2020, month: 4, day: 1, hour: 12, minute: 0, second: 0))!
let target = WeatherRequest(area: "Tokyo", date: date)
Expand Down

0 comments on commit f1c68d0

Please sign in to comment.