You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to the closeed issue - "Timezone support #118Issue " the react big calendar when displayed shows a day back due to local time conversion. I have tried the solutions mentioned in #118 but didnt work for me. Any recommendations? Thanks!
`import React from 'react'
import {connect} from 'react-redux'
import {deleteNote} from '../actions/deleteNote'
import { Calendar, momentLocalizer, Views } from 'react-big-calendar';
import moment from 'moment';
import moment_timezone from 'moment-timezone';
import 'react-big-calendar/lib/css/react-big-calendar.css';
Similar to the closeed issue - "Timezone support #118Issue " the react big calendar when displayed shows a day back due to local time conversion. I have tried the solutions mentioned in #118 but didnt work for me. Any recommendations? Thanks!
`import React from 'react'
import {connect} from 'react-redux'
import {deleteNote} from '../actions/deleteNote'
import { Calendar, momentLocalizer, Views } from 'react-big-calendar';
import moment from 'moment';
import moment_timezone from 'moment-timezone';
import 'react-big-calendar/lib/css/react-big-calendar.css';
const localizer = momentLocalizer(moment)
const Notes = (props) => {
console.log("this is props in Notes.js", props)
const handleDelete = (note) => {
props.deleteNote(note.id, note.tracker_id)
}
const updateEvents = (notes) => {
debugger
let notesArray = []
notes.map(noteEditted => {
let note = {
title: "X",
start: noteEditted.date,
end: noteEditted.date
}
notesArray.push(note)
})
console.log("This is notesArray", notesArray)
return notesArray
}
return (
{props.notes && props.notes.map(note =>
)}
)
}
export default connect(null,{deleteNote})(Notes)`
The text was updated successfully, but these errors were encountered: