kairi003 / Get-cookies.txt-LOCALLY

Get cookies.txt, NEVER send information outside.
MIT License
319 stars 30 forks source link

Enhance expiry date #54

Open ricardobranco777 opened 5 months ago

ricardobranco777 commented 5 months ago

I believe this extension could benefit from interpreting the expiry date timestamp using Date(expirationDate?.toFixed() * 1000).

Otherwise I'm stuck with using: python -c 'from datetime import datetime; print(datetime.fromtimestamp(TIMESTAMP))'

kairi003 commented 5 months ago

Thank you for your issue! Checking the standard again, the notation by UNIX time may be incorrect. I will investigate and resolve this issue as soon as possible.

kairi003 commented 5 months ago

I'm sorry, but in the Netscape format, 'expires' is defined as a numerical value in seconds [ref]. This is consistent with the current implementation. I might have misunderstood your issue. Could you please provide more details if possible?

ricardobranco777 commented 5 months ago

I'm sorry, but in the Netscape format, 'expires' is defined as a numerical value in seconds [ref]. This is consistent with the current implementation. I might have misunderstood your issue. Could you please provide more details if possible?

I meant that it would be nice to have this value interpreted in human way instead of numeric.

kairi003 commented 5 months ago

The formatting standard requires this value to be a number, so there are no plans to change it. However, I would like to add to the next version the feature to change the display of the date in the popup when the icon is clicked.

ricardobranco777 commented 5 months ago

The formatting standard requires this value to be a number, so there are no plans to change it. However, I would like to add to the next version the feature to change the display of the date in the popup when the icon is clicked.

That would be nice, or via settings too.