Add OpenXDay props, move today creation to utils

And pass in today from App
This commit is contained in:
2018-03-14 05:17:13 +05:30
parent b914498201
commit 4002c8daf5
4 changed files with 33 additions and 20 deletions
+1
View File
@@ -0,0 +1 @@
export { Utils } from "./utils";
+7
View File
@@ -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");
}
}