mat-datetimepicker icon indicating copy to clipboard operation
mat-datetimepicker copied to clipboard

Not parsing datetimeInput from timestamp, always using UTC

Open jmelich opened this issue 3 years ago • 2 comments

I have dates stored as timestamp in database (i.e: "1617706041927"), so I need to manage them as it but this plugin always uses UTC(i.e: "2021-04-06T19:45:00.000Z") even I configure the plugin through provider to work with timestamps setting datetimeInput to x given it means timestamp. I've also tested with other values but it seems it haven't effect always giving UTC values.

Screenshot from 2021-04-06 13-53-06

jmelich avatar Apr 06 '21 12:04 jmelich

There is a stackblitz with the issue: stackblitz

jmelich avatar Apr 23 '21 09:04 jmelich

hi @jmelich, thanks very much for the bugreport. unfortunately I don't have any time to "maintain" this repository in regards of bugs. all I'm doing is updating dependencies and accepting pull-requests. feel free to open one - I'l gladly look it through! br, timon

bbortt avatar Apr 23 '21 11:04 bbortt