This definitely can be improved, but for now you can convert the R to a JavaScript equivalent date which is in milliseconds, so multiply by hours in day (24), minutes in hour (60), seconds in minute (60), and then milliseconds in seconds (1000).
Thanks! This worked, but definitely not intuitive for an R user. I would have never thought to convert to js. It actually makes sense, but I wouldn’t have thought to do it.