<%init>
my $comp_time = (stat $m->current_comp->source_file)[9];
my $last_mod = Time::Piece->strptime( $comp_time, '%s' )->strftime(
'%B %e, %Y %H:%M' );
</%init>
<table width="100%" cellspacing="0" cellpadding="5">
<tr>
<td class="heading"><h1>What's New?</h1></td>
</tr>
<tr>
<td>
<p>
The whole site, at this point.
</p>
<p>
<em>Last modified: <% $last_mod %></em>
</p>
</td>
</tr>
</table>
That used to return that last mod date of the source file but now it is
returning:
Last modified: January , 1970 00:00
I am calling it from the main page like: % $m->comp('inc/news.msn');
I checked with Matt S. to see if Time::Piece was the issue since a new
version came out and he says it should work. I also upgraded to the 1.32
version of Mason recently.
Any ideas?
Robert
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users