Skip to content

Instantly share code, notes, and snippets.

View evenicoulddoit's full-sized avatar

Ian Clark evenicoulddoit

View GitHub Profile
@evenicoulddoit
evenicoulddoit / luxon-date-adapter.spec.ts
Created October 8, 2018 12:05 — forked from Zyzle/luxon-date-adapter.spec.ts
Luxon date adaptor for angular material
import { LOCALE_ID } from '@angular/core';
import { async, inject, TestBed } from '@angular/core/testing';
import { DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS } from '@angular/material/core';
import { DateTime, Settings } from 'luxon';
import { LuxonDateAdapter, LUXON_DATE_FORMATS } from './luxon-date-adapter';
// avoid confusion when working with months