datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Wrong Time

Open Salmankhan033 opened this issue 4 years ago • 3 comments

In selected Time i apply Moment moment(selectedDate).format('HH:mm') so it give wrong time. let's suppose I select 9 am then it returns 10 pm, select 8 pm then it returns 9 am. also am and pm is difference

Salmankhan033 avatar Apr 25 '22 09:04 Salmankhan033

same, any solution?

stct97 avatar May 10 '22 11:05 stct97

same, any solution?

I set it according to time zone like as const _currentDate = moment.tz(selectedDate, timeZone).format('HH:mm')

Salmankhan033 avatar May 11 '22 07:05 Salmankhan033

:wave: @Salmankhan033, sorry you're having an issue. This issue is being closed because it does not provide all information required by the issue template. As the issue template explains, we require that you provide a runnable example that reproduces your issue and your environment information. This means you need to provide a code snippet that we can copy-paste into an empty project and see the error ourselves, or provide a git repository with the issue. The reason is that maintainers do not have time to try reproduce bugs themselves. Please try to minimize the superfluous code and focus only on reproducing the bug. Please create a new issue with this and we'll be happy to review it!

github-actions[bot] avatar Jul 25 '22 21:07 github-actions[bot]