0

I create a plugin in k2,which have calendar field, when i choose the time in k2 backend like 2019-03-13 05:00 and save,i don't know why the time auto become 2019-03-13 13:00,the date is correct but the time it's always add eight hour in field

<field name="item_gc_endtime" type="calendar" default="" label="choose" description=""
    class="input-medium"  format="%Y-%m-%d %H:%M"
    singleheader="true" showtime="true" timeformat="24"  weeknumbers="true"
    filltable="true" maxyear="5" /> 
  • Can you check your database to see if the time is being stored as you entered it, or if the time is changing before it's stored? – Lodder Mar 13 at 12:37
  • @Lodder after save the time also become 2019-03-13 13:00,now the problem solved,i only use date without time,and use the text field for user to input hour – Anthony Mar 13 at 13:30
0

after save the time also become 2019-03-13 13:00,now the problem solved,i only use date field without time,and use the text field for user to input hour

  • This looks like issue avoidance rather than issue resolution. – mickmackusa Mar 13 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.