HF RL Explorer

Cookie expiration handling broken for datetime objects

Cookie expiration handling broken for datetime objects: a task in harbor-swesmith-rl-artifacts: Harbor SWE-Smith 强化学习数据产物 (Harbor dataset). When setting cookies with datetime expiration values, the middleware incorrectly handles the expires parameter, causing AttributeError when trying to access…

The task

When setting cookies with datetime expiration values, the middleware incorrectly handles the expires parameter, causing AttributeError when trying to access string methods on datetime objects.

Part of keryszhan/harbor-swesmith-rl-artifacts.