Switch dates from u64 to i64
PostgreSQL only uses signed ints, so this makes things much easier
This commit is contained in:
parent
cb89a3e6f3
commit
ae85f94ddb
3 changed files with 4 additions and 4 deletions
|
|
@ -111,7 +111,7 @@ pub fn post(request: *jetzig.Request) !jetzig.View {
|
|||
.track = scrobble.master_metadata_track_name.?,
|
||||
.album = scrobble.master_metadata_album_album_name.?,
|
||||
.artist = scrobble.master_metadata_album_artist_name.?,
|
||||
.date = @as(u64, @bitCast((try zeit.instant(.{ .source = .{ .iso8601 = scrobble.ts } })).unixTimestamp() * 1000)),
|
||||
.date = (try zeit.instant(.{ .source = .{ .iso8601 = scrobble.ts } })).unixTimestamp() * 1000,
|
||||
};
|
||||
|
||||
const formatted_scrobble = if (rule_list) |rl|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue