Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
preparing for release 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeTobin committed Oct 8, 2015
1 parent 6d11b2d commit 62372e0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 6 additions & 0 deletions APITEST/db.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"messages": [
{
"_id": "560b374443235d21e2608d435",
"text": "jake me",
"__v": 0,
"created": "2015-09-30T01:13:39.665Z"
},
{
"_id": "560b37433235d21e2608d435",
"text": "jake 8",
Expand Down
4 changes: 2 additions & 2 deletions KHE/components/UpdateList.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ var Markdown = require('react-native-markdown');
var moment = require('moment');

// production
//var MESSEGES_URL = 'https://api.khe.io/v1.0/messages';
var MESSEGES_URL = 'https://api.khe.io/v1.0/messages';
// local
var MESSEGES_URL = 'http://localhost:3000/db'
//var MESSEGES_URL = 'http://localhost:3000/db'

var {
Image,
Expand Down
13 changes: 8 additions & 5 deletions KHE/components/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class Dash extends Component {
}

fetchData() {
console.log('fetch Dash');
fetch(MESSEGES_URL)
.then((response) => response.json())
.then((responseData) => {
Expand Down Expand Up @@ -85,20 +86,22 @@ class Dash extends Component {
//var TodaysDate = moment().date();
//var TodaysDate = 10;
console.log("today");
//var todaysDateISO = moment().format();
var todaysDateISO = '2015-10-10T14:00:00-04:00';
//prod time string
var todaysDateISO = moment().format();
//dev time string
//var todaysDateISO = '2015-10-10T14:00:00-04:00';
//console.log("date");
console.log(todaysDateISO);
var ScheduleObject = [];
ScheduleObject = this.state.dataSourceSchedule.events;
console.log(ScheduleObject);
//console.log(ScheduleObject);
var nextEventIndex;
var EventNext = [];

if (typeof ScheduleObject != 'undefined'){
for (var i = 0; i < ScheduleObject.length; i++){
console.log("ScheduleObject");
console.log(ScheduleObject[i].start);
//console.log("ScheduleObject");
//console.log(ScheduleObject[i].start);
// var eventDate = moment(ScheduleObject[i].start).format("D");
// console.log(eventDate);
// console.log(TodaysDate);
Expand Down

0 comments on commit 62372e0

Please sign in to comment.