weixin_33704234 2015-04-16 08:32 采纳率: 0%
浏览 37

Yii Ejuidatetimepicker

I have an entry module for user's shift which you have to set the start and end time of shift.

The website is now being used in Vietnam. I'm using EJuiDateTimePicker for the selection of start and end time.

The problem is that am is sa and pm is ch.

Now when my action read the values using my model, what I retrieve is like these:

  • for start time - 1:30 ch (which is 1:30 pm supposedly)
  • for end time - 2:30 ch (which is 2:30 pm supposedly)

and when I hit save, I received this error:

DateTime::__construct(): Failed to parse time string (03:45 ch) at position 6 (c): The timezone could not be found in the database

My timeformat for the picker is hh:mm tt.

Is there a way for me to retrieve the times in am or pm not in sa or ch? or a way where I can convert the time I retrieved to am or pm?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 树莓派与pix飞控通信
    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题