我有一个用户换班的入门模块,您必须设置班次的开始和结束时间。
该网站目前正在越南使用。我使用EJuiDateTimePicker
来选择开始和结束时间。
问题在于am
是sa
而pm
是ch
。
现在当我的动作使用我的模型读取值时,我检索的内容如下:
当我点击保存时,我收到了这个错误:
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
。
我有办法检索am
或pm
而不是sa
或ch
中的时间吗?或者我可以将检索到的时间转换为am
或pm
的方式?