rules help with Timestamp formatter
rules help with Timestamp formatter
- Subject: rules help with Timestamp formatter
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 09 May 2013 07:52:42 -0700 (PDT)
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