makenotion / notion-sdk-js

Official Notion JavaScript Client
https://developers.notion.com/docs
MIT License
4.81k stars 565 forks source link

Notion Formula Has a Bug Regarding Time Formatting #480

Open firatbezir opened 8 months ago

firatbezir commented 8 months ago

When i was creating a time format for my tasks, i realized time formatting does not give what is expected as you can see from the ss. formatDate(dateEnd(prop("Date")), "HH:mm A") produces a wrong time format (eg. 18:15 P12 in this case)

Expected behavior As seen from the ss, first formatDate(prop("Date"), "HH:mm A" code produces the correct time (eg. 17:30 PM)

Screenshots Screenshot 2023-12-23 182130

amareshvarma commented 8 months ago

I would like to work on this issue

divikshrivastava commented 6 months ago

Can I take a stab at this issue ? @firatbezir

firatbezir commented 6 months ago

Sure @divikshrivastava