Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 'InvariantCulture' when converting the UNIX timestamp to string #480

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahmedisam99
Copy link
Contributor

In some cases (like mine) when the current culture is RTL (e.g. Arabic) and when converting a DateTime that is before the UNIX epoch it results a incorrectly formatted negative string.

// english culture
"07-15-1953" -> "-519616800000"

// arabic culture
"07-15-1953" -> "519616800000-"

Which causes issues when trying to update the value in redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant