mirror of
https://github.com/bendtherules/is-nifty-open.git
synced 2026-08-19 00:32:31 +00:00
Add OpenXDay props, move today creation to utils
And pass in today from App
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export { Utils } from "./utils";
|
||||
@@ -0,0 +1,7 @@
|
||||
import * as moment from 'moment-timezone';
|
||||
|
||||
export class Utils {
|
||||
static createTodayDateInIndiaTZ(): moment.Moment {
|
||||
return moment.tz(moment.tz.guess()).tz("Asia/Kolkata");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user