codenaught

Results 3 comments of codenaught

Are you sure it's an RTC issue? On a single-boot mac, I'm seeing this for any timezone in daylight savings time. ``` $ echo $'now | floor\t| todate \t| fromdate\toffset\tTZ';...

Same result from a Docker image running on EC2: ``` now | floor | todate | fromdate offset TZ 1619737232 2021-04-29T23:00:32Z 1619737232 0 EST 1619737232 2021-04-29T23:00:32Z 1619737232 0 PST 1619737232...

Here's a workaround function that can go in the `.jq` file: ``` # Workaround for https://github.com/stedolan/jq/issues/2304 def fromdatefixed: fromdate - (now|floor|((todate|fromdate)-.)) ; ``` Example: ``` $ jq -n '"2021-05-12T13:14:15Z" |...