Thanks to visit codestin.com
Credit goes to github.com

Skip to content

problem with safari #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alireza0x0f opened this issue May 13, 2020 · 3 comments
Closed

problem with safari #108

alireza0x0f opened this issue May 13, 2020 · 3 comments
Labels

Comments

@alireza0x0f
Copy link

Hi
it seems it has still problem with safari browser when select datetime.
when i select datetime in safari, it shows correct data but when i read the data it is wrong.

@talkhabi
Copy link
Owner

Hi,
Please explain more, where and how do you read the data?

@alireza0x0f
Copy link
Author

alireza0x0f commented May 14, 2020

when i set the date with (picker.date = dateString;) and read it by (date = picker.date) command, it is ok. but when i pick a datetime manually and read it by (date = picker.date), the readed time is 3:30 ( or 4:30 in summer) more than selected time.
the configure is like below:

<div id="time_from">
  <label>زمان شروع</label>
  <date-picker
    v-model="date"
    v-bind:min="dmin"
    v-bind:max="dmax"
    locale="fa,en"
    type="datetime"
    format="YYYY-MM-DDTHH:mm:ss"
    display-format="jYYYY-jMM-jDD HH:mm"
    @change="onChange()"
    :timezone="false"
  ></date-picker>
</div>
var picker = new Vue({
  el: '#time_from',
  data: {
    date: '',
    dmin: '',
    dmax: ''
  },
  components: {
    DatePicker: VuePersianDatetimePicker
  },
  methods: {
    onChange: function() {
      // todo if safari-> read data and fix it for next reads
      //this.date
    }
  }
})

i set timezone to false because picker has a bug with timezone
if timezone is true and i select a time in summer, the time is UTC+4:30
but when i select a time from winter, the time is again UTC+4:30 instead of UTC+3:30

@talkhabi talkhabi added the bug label Jun 2, 2020
@talkhabi
Copy link
Owner

سلام دوست عزیز
عذرخواهی میکنم بابت اینکه دیر شد
لطفا ورژن جدید رو نصب کنید و مجددا تست کنید
اگر بازهم مشکل داشت بگید

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants