{"id":22031108,"url":"https://github.com/russbaz/prismabugsubmission","last_synced_at":"2026-04-10T11:02:46.709Z","repository":{"id":166449917,"uuid":"641950176","full_name":"RussBaz/PrismaBugSubmission","owner":"RussBaz","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-26T14:57:33.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T17:51:36.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RussBaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-17T13:56:42.000Z","updated_at":"2023-05-17T15:33:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f40fb806-13af-4c9e-8d8d-8c809777e9a3","html_url":"https://github.com/RussBaz/PrismaBugSubmission","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussBaz%2FPrismaBugSubmission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussBaz%2FPrismaBugSubmission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussBaz%2FPrismaBugSubmission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RussBaz%2FPrismaBugSubmission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RussBaz","download_url":"https://codeload.github.com/RussBaz/PrismaBugSubmission/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245093588,"owners_count":20559757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T08:14:25.927Z","updated_at":"2026-04-10T11:02:46.703Z","avatar_url":"https://github.com/RussBaz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PrismaBugSubmission\n\nRun `npm run all` and check the result. The Prisma Client misunderstands the datetime value generated by the `dbgenerated(\"NOW()\")`. When I run `select now()` inside the db, I get the correct valued (in UTC). For example: `2023-05-17 16:49:33.898203 +00:00`.\n\nMac Mini 2018 (Intel)\n\n-   OS: MacOS 13.3.1 (a)\n-   PostgreSQL (local): PostgreSQL 14.8 on aarch64-apple-darwin20.6.0, compiled by Apple clang version 12.0.5 (clang-1205.0.22.9), 64-bit\n-   Node: v20.1.0\n-   NPM: 9.6.6\n\nMacBook Pro M1 Max (ARM)\n\n-   OS: MacOS 13.3.1 (a)\n-   PostgreSQL (local): PostgreSQL 14.7 on aarch64-apple-darwin20.6.0, compiled by Apple clang version 12.0.5 (clang-1205.0.22.9), 64-bit\n-   Node: v20.1.0\n-   NPM: 9.6.7\n\nWindows PC\n\n-   OS: Windows 10 22H2\n-   PostgreSQL (local): PostgreSQL 12.4, compiled by Visual C++ build 1914, 64-bit\n-   Node: v20.2.0\n-   NPM: 9.6.6\n\nMac Mini 2018 (Intel) Results:\n\n```\n1. Testing default\nPrisma now(): Fri May 19 2023 23:10:39 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 05:10:39 GMT+0600 (East Kazakhstan Time)\nThe difference: 06:00:00 hours / 21600002 ms\n\n2. Testing manual\nManual: Fri May 19 2023 23:10:39 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 05:10:39 GMT+0600 (East Kazakhstan Time)\nThe difference: 06:00:00 hours / 21600002 ms\n\n3. Manually assigning both properties\nManual: Fri May 19 2023 23:10:39 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Fri May 19 2023 23:10:39 GMT+0600 (East Kazakhstan Time)\nThe difference: 00:00:00 hours / 0 ms\n```\n\nData in the database:\n\n```csv\nid,prismaNow,dbNow\n1,2023-05-19 17:10:39.942,2023-05-19 23:10:39.944\n2,2023-05-19 17:10:39.951,2023-05-19 23:10:39.953\n3,2023-05-19 17:10:39.953,2023-05-19 17:10:39.953\n\n```\n\nTesting now() in the database:\n\n```sql\nselect now()\n```\n\n```\n2023-05-19 17:05:51.532245 +00:00\n```\n\nRunning `date` from the Terminal:\n\n```\nFri 19 May 2023 23:07:45 +06\n```\n\nMacBook Pro M1 Max (ARM) Results:\n\n```\n1. Testing default\nPrisma now(): Fri May 19 2023 23:34:40 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 00:34:40 GMT+0600 (East Kazakhstan Time)\nThe difference: 01:00:00 hours / 3600000 ms\n\n2. Testing manual\nManual: Fri May 19 2023 23:34:40 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 00:34:40 GMT+0600 (East Kazakhstan Time)\nThe difference: 01:00:00 hours / 3600001 ms\n\n3. Manually assigning both properties\nManual: Fri May 19 2023 23:34:40 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Fri May 19 2023 23:34:40 GMT+0600 (East Kazakhstan Time)\nThe difference: 00:00:00 hours / 0 ms\n```\n\nData in the database:\n\n```csv\nid,prismaNow,dbNow\n1,2023-05-19 17:34:40.954,2023-05-19 18:34:40.954\n2,2023-05-19 17:34:40.958,2023-05-19 18:34:40.959\n3,2023-05-19 17:34:40.959,2023-05-19 17:34:40.959\n\n```\n\nTesting now() in the database:\n\n```sql\nselect now()\n```\n\n```\n2023-05-19 17:35:42.365372 +00:00\n```\n\nRunning `date` from the Terminal:\n\n```\nFri 19 May 2023 23:36:00 +06\n```\n\nWindows PC Results:\n\n```\n1. Testing default\nPrisma now(): Fri May 19 2023 23:21:14 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 05:21:14 GMT+0600 (East Kazakhstan Time)\nThe difference: 06:00:00 hours / 21600005 ms\n\n2. Testing manual\nManual: Fri May 19 2023 23:21:14 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Sat May 20 2023 05:21:14 GMT+0600 (East Kazakhstan Time)\nThe difference: 06:00:00 hours / 21600002 ms\n\n3. Manually assigning both properties\nManual: Fri May 19 2023 23:21:14 GMT+0600 (East Kazakhstan Time)\nPostgres now(): Fri May 19 2023 23:21:14 GMT+0600 (East Kazakhstan Time)\nThe difference: 00:00:00 hours / 0 ms\n```\n\nData in the database:\n\n```csv\nid,prismaNow,dbNow\n1,2023-05-19 17:21:14.546,2023-05-19 23:21:14.551\n2,2023-05-19 17:21:14.569,2023-05-19 23:21:14.571\n3,2023-05-19 17:21:14.572,2023-05-19 17:21:14.572\n\n```\n\nTesting now() in the database:\n\n```sql\nselect now()\n```\n\n```\n2023-05-19 17:24:29.266302 +00:00\n```\n\nRunning `date` from the MS Terminal (PowerShell Core):\n\n```\n19 May 2023 23:27:04\n```\n\nAnd running `Get-TimeZone`:\n\n```\nId                         : Central Asia Standard Time\nHasIanaId                  : False\nDisplayName                : (UTC+06:00) Nur-Sultan\nStandardName               : Central Asia Standard Time\nDaylightName               : Central Asia Summer Time\nBaseUtcOffset              : 06:00:00\nSupportsDaylightSavingTime : False\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussbaz%2Fprismabugsubmission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frussbaz%2Fprismabugsubmission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frussbaz%2Fprismabugsubmission/lists"}