I am working on a program to calculate time for employees who (basically) get paid by the job. I have tables in MySQL for their bookings (Table 1) and their actions (Table 2). I intend to use Make to pull in the data and calculate the correct hours.
In MySQL, the data shows the hours in local time, but when I use any of the MySQL modules in Make… it subtracts 5 hours from the actual dates (which show up correctly in MySQL).
I’m using MySQL Execute a Query with the following text in the Query field:
SELECT bookingID
, Min(pickupAt
), pickupLAT
, pickupLNG
, destLAT
, destLNG
, driverRef
,acctRef
FROM bookings
GROUP BY driverRef
ORDER BY Min(``pickupAt``)
ASC
It is correctly giving me the earliest booking record for each driver. However, where the source data shows this:
|Booking ID | Pick Up Date/Time
|40272423A | 2024-04-14 00:34:00 |
|40272936A | 2024-04-14 02:38:00 |
It shows up in the Bundle (collections) like this:
-
bookingID: 40272423A
-
Min(
pickupAt
): April 13, 2024 7:34 PM -
bookingID: 40272936A
-
Min(
pickupAt
): April 13, 2024 9:38 PM
I’ve tried everything I can think of (mostly various ways to ensure that MySQL knows what timezone to use - and including trying to ignore the problem. But, as I work through the programming and troubleshooting to ensure I’m isolating the correct records to make the calculations I need… it’s driving me crazy that I can’t just compare what’s in Make to what’s in the source documentation and/or my MySQL tables.
My Organization and Scenario timezone is set to America/Phoenix and my local timezone is set to America/Chicago (when all three are set to Phoenix… the datetime(s) shown are off by 7 hours instead of 5).
I can tell that there are some really smart people out there answering questions. Any thoughts on my problem here? I’d be glad to provide screen prints if that would be helpful… but I don’t see how and copy/paste didn’t work for me…
Since moving my local time from Phoenix to Chicago changed what I was getting by two hours… it seems like maybe I can set my local time to whatever would be five hours later than Chicago time… but that seems like a poor solution that probably comes with side effects??