Re: rules help with Timestamp formatter
Re: rules help with Timestamp formatter
- Subject: Re: rules help with Timestamp formatter
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 09 May 2013 12:33:06 -0700 (PDT)
My bad, I forgot that for some reason, NSTimestamps on a to-many (embedded component) first have to have their component changed to something like 'ERD2WDisplayDateOrNull' before a formatter can be used.
--- On Thu, 5/9/13, Theodore Petrosky <email@hidden> wrote:
> From: Theodore Petrosky <email@hidden>
> Subject: rules help with Timestamp formatter
> To: "WebObjects Development" <email@hidden>
> Date: Thursday, May 9, 2013, 10:52 AM
> I don't get this at all. I am trying
> to format an NSTimestamp. I had a few timestamp formatter
> rules that were working fine. Like:
>
> 100 : (((pageConfiguration like 'Edit*Project*' or
> pageConfiguration like 'Create*Project*') and
> smartAttribute.className =
> 'com.webobjects.foundation.NSTimestamp') and propertyKey =
> 'timing') => formatter = "%m/%d/%y"
> [com.webobjects.directtoweb.Assignment]
>
> this is prototyped as date using the postgresqsl prototypes.
> on the server it is a type date so there is no time stamp.
>
> I have a timestamp that was modeled the same except it lives
> in the PG backend as a timestamp without time zone. It is
> called 'dueby'.
>
> Nothing I do wants to format the propertyKey dueBy. I turned
> off all my formatting rules and sure enough all the
> instances of any of the other dates changes to the default.
> So I added one rule:
>
> 100 : smartAttribute.className =
> 'com.webobjects.foundation.NSTimestamp' => formatter =
> "%m-%d-%Y" [com.webobjects.directtoweb.Assignment]
>
> If I am correct this should format any and all timestamps?
> Yes?
>
> But not this timestamp on my
> EditRelationshipEmbeddedProjectStep. 2013-05-14 04:00:00
> Etc/GMT
>
> What am I doing wrong?
>
> Ted
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden