The problem was I neglected to add _ to the filter used for the time
fmt input. That will be corrected in the next release. For now, change
engine.php ~110 to

$BOLTfilter['parameter'] = '-_a-zA-Z0-9.,\'"%:!/ ';

However, I would definitely recommend using a timestamp, for several reasons.

1) Page names aren't supposed to take : and that will give you problems.
2) We have a nice shortcut for timestamps in BoltWire. Just set
target=page.+ and you got it
3) You can easily display the time in a page by doing [(time {p2} %c)].
4) You have the advantage of being able to change the timestamp
display at any time.

Cheers,
Dan


On Sat, Sep 19, 2009 at 5:55 PM, Kevin Reed <[email protected]> wrote:
> Looks like that won't work anyway since using the string as a page name is
> not valid as I just found out...
>
> So I might as well just use a unix time stamp.
>
> On Sat, Sep 19, 2009 at 2:07 PM, Kevin <[email protected]> wrote:
>>
>> I am working on something that will save a page using the current
>> timestamp in readable format.
>>
>> The format would be expressed as: YYYY-MM-DD_HH:MM:SS
>>
>> Using the time function If I use: %Y-%m-%d_%H:%M:%S
>>
>> However, if I use that I get unexpected output...
>>
>> [(time {now} '%Y-%m-%d_%H:%M:%S')]
>>
>> I get:  1253393200
>>
>> If I change the underscore to a dash or a space it works just fine...
>>
>> [(time {now} '%Y-%m-%d %H:%M:%S')]
>> I get what I expect...  2009-09-19 13:45:44
>>
>> [(time {now} '%Y-%m-%d-%H:%M:%S')]
>> I get:  2009-09-19-13:45:44
>>
>> Seems that the underscore messes up the format string...
>>
>> Not sure what the issue is as underscore can be used in the PHP
>> strftime function.  I took a look at the BOLTFtime function but really
>> didn't see anything stand out.
>>
>>
>
>
>
> --
> Kevin Reed
> TNET Services, Inc.
> [email protected]
> Mesa AZ Weather Info - http://www.tnetweather.com
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to