Skip to content

model view can not display datetime with '0000-00-00 00:00:00'  #44

@Thomas-Ahn

Description

@Thomas-Ahn

I'm a rookie on chicagoboss.. while working on mysql with timestamp I had faced cb_admin got crashed when timestamp is set as '0000-00-00 00:00:00' and Error message is folllowing:
[error] <0.320.0>@boss_web_controller_render:render_with_template:284 Error in view cb_admin_view_model_model_html error:function_clause Stacktrace: [{erlydtl_dateformat,monthname,[0],[{file,"src/filter_lib/erlydtl_dateformat.erl"},{line,409}]},{erlydtl_dateformat,tag_to_value,5,[{file,"src/filter_lib/erlydtl_dateformat.erl"},{line,265}]},{erlydtl_dateformat,replace_tags,7,[{file,"src/filter_lib/erlydtl_dateformat.erl"},{line,103}]},{cb_admin_view_model_model_html,-render_internal/2-fun-10-,6,[{file,""},{line,1157}]},{lists,mapfoldl,3,[{file,"lists.erl"},{line,1352}]},{lists,mapfoldl,3,[{file,"lists.erl"},{line,1353}]},{erlydtl_runtime,forloop,4,[{file,"src/erlydtl_runtime.erl"},{line,408}]},{cb_admin_view_model_model_html,-render_internal/2-fun-11-,5,[{file,""},{line,1434}]}]

to make a workaround on this issue, I had to change cb_admin view mode templates(model.html and show.html)
to date:"Y-m-d H:i:s" from date:"N j, Y,P"

hope this help to any one who has the same issue.. hope cb_admin can enhance this case or make a documentation somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions