bugraoz93 commented on code in PR #64083:
URL: https://github.com/apache/airflow/pull/64083#discussion_r2976874381


##########
dev/README_RELEASE_PROVIDERS.md:
##########
@@ -583,7 +583,7 @@ email.
 export VOTE_DURATION_IN_HOURS=72
 export IS_SHORTEN_VOTE=$([ $VOTE_DURATION_IN_HOURS -ge 72 ] && echo "false" || 
echo "true")
 export SHORTEN_VOTE_TEXT="This is a shortened ($VOTE_DURATION_IN_HOURS hours 
vote) as agreed by policy set it 
https://lists.apache.org/thread/cv194w1fqqykrhswhmm54zy9gnnv6kgm";
-export VOTE_END_TIME=$(LANG=en_US.UTF-8 TZ=UTC date 
-v+"${VOTE_DURATION_IN_HOURS}"H "+%B %d, %Y %H:%M %p")
+export VOTE_END_TIME=$(date --utc -d "now + $VOTE_DURATION_IN_HOURS hours + 10 
minutes" +'%Y-%m-%d %H:%M')

Review Comment:
   Tried with Claude :) Haven't verified through a Mac yet but it metarilised 
what I mentioned above 
   
   ```
   OS=$(uname)
   
   if [ "$OS" = "Darwin" ]; then
       # macOS (BSD date)
       export VOTE_END_TIME=$(date -u -v "+${VOTE_DURATION_IN_HOURS}H" -v 
"+10M" +'%Y-%m-%d %H:%M')
   elif [ "$OS" = "Linux" ]; then
       # Linux (GNU date)
       export VOTE_END_TIME=$(date --utc -d "now + $VOTE_DURATION_IN_HOURS 
hours + 10 minutes" +'%Y-%m-%d %H:%M')
   else
       echo "Unsupported OS: $OS" >&2
       exit 1
   fi
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to