Paypal在IPN中将日期字符串生成为HH:MM:SS Mmm DD,YYYY PDT 我来自其他时区,我需要将此字符串从PDT转换为当前时区并显示日期时间。
参考:https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/
var date = moment("16:23:42 Sep 27, 2018 PDT").format('HH:MM:SS MMM DD, YYYY zzz');
console.log(date)
//The out put of above code was: 04:09:00 Sep 28, 2018