You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having timestamps in you data is kind of standard, Rails has created_at and updated_at, etc. I was trying to do the same and included StartTime and EndTime in my model (kind of similar to the Rails timestamps but not quite).
After pulling up the records in CB_Admin it renders like this:
Unfortunately you can't pass in the erlang:now() output to this built in function because it renders it incorrectly as you can see the screenshot above.
My question would be: how is this supposed to be fixed? Could I invoke an Erlang function from the template or I need to format the timestamp before I pass it in?
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi,
Having timestamps in you data is kind of standard, Rails has created_at and updated_at, etc. I was trying to do the same and included StartTime and EndTime in my model (kind of similar to the Rails timestamps but not quite).
After pulling up the records in CB_Admin it renders like this:
http://cl.ly/image/2P30381W3X2N
Here is the relevant code
cb_admin/src/view/model/show.html
I am fairly new to CB so I had no idea what
date:"N j, Y, P"
is doing but I guess it is the same as in the Django template builtin.https://docs.djangoproject.com/en/1.1/ref/templates/builtins/#date
Unfortunately you can't pass in the erlang:now() output to this built in function because it renders it incorrectly as you can see the screenshot above.
In Erlang I would fix it something like this:
My question would be: how is this supposed to be fixed? Could I invoke an Erlang function from the template or I need to format the timestamp before I pass it in?
Thank you in advance!
The text was updated successfully, but these errors were encountered: