efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Translate DateTimeOffset.ToUnixTime[Seconds|Milliseconds]

Open Marusyk opened this issue 3 years ago • 4 comments
trafficstars

Added translation for DateTimeOffset.ToUnixTime[Seconds|Milliseconds]

Fixes #28925

Could anyone help me improve the tests? Thank you in advance

Marusyk avatar Sep 04 '22 01:09 Marusyk

Marked as blocked since we shouldn't merge until we are actively working in main again.

ajcvickers avatar Sep 04 '22 18:09 ajcvickers

Cosmos has DateTimeToTicks which returns ticks since unix epoch though not sure if Cosmos can handle DateTimeOffset as a type. Add translation if it is supported.

smitpatel avatar Sep 07 '22 04:09 smitpatel

Converting to draft for now as we're not merging this for 7.0.

roji avatar Sep 07 '22 06:09 roji

Can I mark it "ready for review"?

Marusyk avatar Nov 11 '22 00:11 Marusyk

Rebased, removed SQLite translations, and propagated the type mapping from instance to UnixEpoch.

bricelam avatar Mar 20 '23 18:03 bricelam