Yii Ejuidatetimepicker

时间:2015-04-16 08:32:19

标签: php jquery ajax datetime yii

我有一个用户换班的入门模块,您必须设置班次的开始和结束时间。

该网站目前正在越南使用。我使用EJuiDateTimePicker来选择开始和结束时间。

问题在于amsapmch

现在当我的动作使用我的模型读取值时,我检索的内容如下:

  • 开始时间 - 1:30 ch(据说是下午1:30)
  • 结束时间 - 2:30 ch(据说是下午2:30)

当我点击保存时,我收到了这个错误:

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

我的选择器时间格式为hh:mm tt

我有办法检索ampm而不是sach中的时间吗?或者我可以将检索到的时间转换为ampm的方式?

0 个答案:

没有答案