deleted, commented out
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { URLS } from "../api/apiConfig";
|
||||
import { TAxios } from "../api/TAxios";
|
||||
import { convertUtcToLocal } from "../components/MediaPlayer/util";
|
||||
import { CATEGORY_DATA_MAX_RESULTS_LIMIT } from "../utils/Config";
|
||||
import * as HelperMethods from "../utils/helperMethods";
|
||||
import { types } from "./actionTypes";
|
||||
@@ -49,26 +50,28 @@ export const setMainLiveUpcomingAlarm = (props) => (dispatch, getState) => {
|
||||
testStrtDt,
|
||||
} = props;
|
||||
|
||||
const convertedStrtDt = convertUtcToLocal(strtDt);
|
||||
|
||||
const onSuccess = (response) => {
|
||||
console.log("setMainLiveUpcomingAlarm onSuccess", response.data);
|
||||
|
||||
if (alamDispFlag === "Y") {
|
||||
const data = {
|
||||
startTime: {
|
||||
// year: new Date(strtDt).getFullYear(),
|
||||
// month: new Date(strtDt).getMonth() + 1,
|
||||
// day: new Date(strtDt).getDate(),
|
||||
// hour: new Date(strtDt).getHours(),
|
||||
// minute: new Date(strtDt).getMinutes(),
|
||||
// second: new Date(strtDt).getSeconds(),
|
||||
year: new Date(convertedStrtDt).getFullYear(),
|
||||
month: new Date(convertedStrtDt).getMonth() + 1,
|
||||
day: new Date(convertedStrtDt).getDate(),
|
||||
hour: new Date(convertedStrtDt).getHours(),
|
||||
minute: new Date(convertedStrtDt).getMinutes(),
|
||||
second: new Date(convertedStrtDt).getSeconds(),
|
||||
|
||||
// pyh, delete test case
|
||||
year: new Date(testStrtDt).getFullYear(),
|
||||
month: new Date(testStrtDt).getMonth() + 1,
|
||||
day: new Date(testStrtDt).getDate(),
|
||||
hour: new Date(testStrtDt).getHours(),
|
||||
minute: new Date(testStrtDt).getMinutes(),
|
||||
second: new Date(testStrtDt).getSeconds(),
|
||||
// year: new Date(testStrtDt).getFullYear(),
|
||||
// month: new Date(testStrtDt).getMonth() + 1,
|
||||
// day: new Date(testStrtDt).getDate(),
|
||||
// hour: new Date(testStrtDt).getHours(),
|
||||
// minute: new Date(testStrtDt).getMinutes(),
|
||||
// second: new Date(testStrtDt).getSeconds(),
|
||||
},
|
||||
params: {
|
||||
message: `[${patncNm}] ${showNm}\nWatch Live show now?`,
|
||||
|
||||
Reference in New Issue
Block a user