# Ion-DateTime picker error

**URL:** <https://forum.ionicframework.com/t/ion-datetime-picker-error/165469>\
**Category:** Ionic Framework\
**Created:** [June 4, 2019, 1:43pm UTC](https://forum.ionicframework.com/t/ion-datetime-picker-error/165469 "2019-06-04T13:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marko-Matijevic](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@Marko-Matijevic](https://forum.ionicframework.com/u/Marko-Matijevic)\
**Post date:** [June 4, 2019, 1:43pm UTC](https://forum.ionicframework.com/t/ion-datetime-picker-error/165469/1 "2019-06-04T13:43:22Z")

</div>

I am having issues with time picker because it is showing me wrong time. The time is 2 hours behind  
 ![time](https://global.discourse-cdn.com/ionicframework/original/3X/3/d/3d258ea7f27be4842e2401cab21fa62e64ae7622.png)

```auto
  <ion-datetime type="datetime-local"
                          [pickerOptions]="customPickerOptionsTime"
                          [ngModelOptions]="{standalone: true}"
                          placeholder="Select time"
                          display-format="HH:mm"
                          [(ngModel)]="customTime"
                          picker-format="HH mm "
                          [max]="currentTime"
            ></ion-datetime>

```

```auto
async timePicker() {

        this.customPickerOptionsTime = {
            buttons: [{
                text: 'Cancel',
                handler: () => {
                }
            }, {
                text: 'Save',
                handler: (event) => {
                    console.log('Clicked Save!');
                    this.timeObj = event;
                    this.customTime = event;
                    console.log(this.timeObj);
                }
            }],
        };

    }

```
