Fix as_date()'s std::bad_cast with decimal value by Prosperoh · Pull Request #240 · Thalhammer/jwt-cpp

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@Prosperoh

Copy link

Contributor

If the timestamp value for the date is a decimal number, round it to the closest integer. This allows date claims to have a decimal value, though it will be rounded up to the closest second.

@Prosperoh Prosperoh changed the title Fix as date bad cast with decimal value Fix as_date() bad cast with decimal value

Sep 13, 2022

@Prosperoh Prosperoh changed the title Fix as_date() bad cast with decimal value Fix as_date()'s std::bad_cast with decimal value

Sep 13, 2022
Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>
Signed-off-by: Dominik Thalhammer <dominik@thalhammer.it>

@Thalhammer Thalhammer merged commit 6830943 into Thalhammer:master

Sep 14, 2022

@prince-chrismc prince-chrismc modified the milestones: 0.6.1, 0.7.0

Sep 14, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Thalhammer Thalhammer Thalhammer approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

0.7.0

Development

Successfully merging this pull request may close these issues.

3 participants

@Prosperoh @Thalhammer @prince-chrismc

Comments