Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Free Nodelet Hack: Set Timestamp for Newest Nodes

by Dietz (Curate)
on Nov 13, 2005 at 11:24 UTC ( #508091=note: print w/replies, xml ) Need Help??

in reply to Free Nodelet Hack: Set Timestamp for Newest Nodes

I just noticed one can set his own Format for date-times in User Settings which could cause the regex to fail because the setting also has an effect on the displayed node creation time.

When not set, the default setting for the date format on PM currently is "%b %d, %Y at %H:%M %Z" (i.e. 'Nov 13, 2005 at 01:23 CET').
Using "%b %d, %Y at %H:%M:%S %Z" to also show the seconds would still work.

The javascript expects the variable 'timestr' to be in the format of "%b %d, %Y %H:%M:%S" or "%b %d, %Y %H:%M" (i.e. 'Nov 13, 2005 01:23') to convert the time string into unix time (aka epoch seconds).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://508091]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2016-10-22 03:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (291 votes). Check out past polls.