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 <tedp...@yahoo.com> wrote:

> From: Theodore Petrosky <tedp...@yahoo.com>
> Subject: rules help with Timestamp formatter
> To: "WebObjects Development" <webobjects-dev@lists.apple.com>
> 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      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to