• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
rules help with Timestamp formatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: rules help with Timestamp formatter
      • From: Theodore Petrosky <email@hidden>
  • Prev by Date: Re: Running WO application standalone
  • Next by Date: Re: rules help with Timestamp formatter
  • Previous by thread: Re: Running WO application standalone
  • Next by thread: Re: rules help with Timestamp formatter
  • Index(es):
    • Date
    • Thread