Skip to main content
Module

x/supabase/mod.ts>Transformers.toTimestampString

An isomorphic Javascript client for Supabase.
Go to Latest
variable Transformers.toTimestampString
import { Transformers } from "https://deno.land/x/supabase@1.3.1/mod.ts";
const { toTimestampString } = Transformers;

Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T' See https://github.com/supabase/supabase/issues/18

Examples

toTimestampString('2019-09-10 00:00:00') //=> '2019-09-10T00:00:00'

type

(value: RecordValue) => RecordValue