dateType.fromDriver() — astro Function Reference
Architecture documentation for the dateType.fromDriver() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c81da696_329d_47ff_25a5_ecf3020284c0["dateType.fromDriver()"] 80ef4dc8_c183_c77f_e09f_d40d9a6ca694["index.ts"] c81da696_329d_47ff_25a5_ecf3020284c0 -->|defined in| 80ef4dc8_c183_c77f_e09f_d40d9a6ca694 dc930e42_7487_0b83_c933_868cadbb9d97["isISODateString()"] c81da696_329d_47ff_25a5_ecf3020284c0 -->|calls| dc930e42_7487_0b83_c933_868cadbb9d97 style c81da696_329d_47ff_25a5_ecf3020284c0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/runtime/index.ts lines 30–37
fromDriver(value) {
if (!isISODateString(value)) {
// values saved using CURRENT_TIMESTAMP are not valid ISO strings
// but *are* in UTC, so append the UTC zone.
value += 'Z';
}
return new Date(value);
},
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does dateType.fromDriver() do?
dateType.fromDriver() is a function in the astro codebase, defined in packages/db/src/runtime/index.ts.
Where is dateType.fromDriver() defined?
dateType.fromDriver() is defined in packages/db/src/runtime/index.ts at line 30.
What does dateType.fromDriver() call?
dateType.fromDriver() calls 1 function(s): isISODateString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free