Skip to content

Commit

Permalink
Fix format date
Browse files Browse the repository at this point in the history
  • Loading branch information
boozec committed Jul 9, 2024
1 parent 5686380 commit a8a37e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions internal/handlers/acmesky/st_prepare_offer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func STPrepareOffer(client worker.JobClient, job entities.Job) {
Flight1: models.OfferInputFields{
DepartureAirport: journey.Flight1.DepartureAirport,
ArrivalAirport: journey.Flight1.ArrivalAirport,
DepartureTime: journey.Flight1.DepartureTime.Format("02/01/2006 15:04"),
ArrivalTime: journey.Flight1.ArrivalTime.Format("02/01/2006 15:04"),
DepartureTime: journey.Flight1.DepartureTime.Format("01/02/2006 15:04"),
ArrivalTime: journey.Flight1.ArrivalTime.Format("01/02/2006 15:04"),
Cost: journey.Flight1.Cost,
},
JourneyId: int(journey.Id),
Expand All @@ -54,8 +54,8 @@ func STPrepareOffer(client worker.JobClient, job entities.Job) {
body.Flight2 = &models.OfferInputFields{
DepartureAirport: journey.Flight2.DepartureAirport,
ArrivalAirport: journey.Flight2.ArrivalAirport,
DepartureTime: journey.Flight2.DepartureTime.Format("02/01/2006 15:04"),
ArrivalTime: journey.Flight2.ArrivalTime.Format("02/01/2006 15:04"),
DepartureTime: journey.Flight2.DepartureTime.Format("01/02/2006 15:04"),
ArrivalTime: journey.Flight2.ArrivalTime.Format("01/02/2006 15:04"),
Cost: journey.Flight2.Cost,
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/http/soap.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func MakeRentRequest(rent models.Rent, offer models.Offer) (*BookRentResponse, e
"PickupAddress": *offer.User.Address,
"Address": airport.Location,
"CustomerName": offer.User.Name,
"PickupDate": offer.Journey.Flight1.DepartureTime.Add(-2 * time.Hour).Format("02/01/2006 15:04"),
"PickupDate": offer.Journey.Flight1.DepartureTime.Add(-2 * time.Hour).Format("01/02/2006 15:04"),
}

res, err := soap.Call("BookRent", params)
Expand Down

0 comments on commit a8a37e0

Please sign in to comment.