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

Fix ScheduleAt in C# #2163

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Fix ScheduleAt in C# #2163

merged 1 commit into from
Jan 23, 2025

Conversation

kazimuth
Copy link
Contributor

@kazimuth kazimuth commented Jan 22, 2025

Description of Changes

Fix the implementation of C# timestamps. While addressing issues on blackholio I noticed these were incorrect. The specific issue was a missed subtraction of DateTimeOffset.UnixEpoch when converting from DateTimeOffset to milliseconds.

A fix is needed if the C# server version of Blackholio is to work.

#1836 is a larger change that will rework Timestamp in C#, that will want to be rebased onto this.

API and ABI breaking changes

Added APIs in the C# SDK.

Expected complexity level and risk

0

Testing

Added a unit test.

@kazimuth kazimuth changed the title Jgilles/fix cs timestamps Fix ScheduleAt in C# Jan 22, 2025
@kazimuth kazimuth requested review from RReverser and gefjon January 22, 2025 23:16
Purge console logging

Update crates/bindings-csharp/BSATN.Runtime/Builtins.cs

Co-authored-by: Ingvar Stepanyan <[email protected]>
Signed-off-by: james gilles <[email protected]>

Revert struct removal

Remove space
@kazimuth kazimuth force-pushed the jgilles/fix-cs-timestamps branch from adb59bf to 6c11592 Compare January 23, 2025 18:29
@kazimuth kazimuth changed the base branch from jsdt/subscribe-sdk-3 to master January 23, 2025 18:29
@kazimuth kazimuth added this pull request to the merge queue Jan 23, 2025
Merged via the queue into master with commit 988ec0c Jan 23, 2025
12 checks passed
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.

3 participants