I am using the Timezone.cfc to go to a time server and pick up the current
time.  It produces a struct called nowuts,  and amongst other values is the
one i need - now.

If I display #nowuts.now#  I get this:  {ts '2006-05-25 07:27:01'}     (or
whatever is the current time)    So far so good.

Now if i actually use this value in a page, the year doesnt display
properly.  I get the year 0006 not 2006. For example:

#dateformat(nowuts.now, "d/m/yyyy")#   gives this:    25/5/0006

Then if I paste the text value of the nowuts.now value into the dateformat,
now it gives the correct year.   i.e.

#dateformat("{ts '2006-05-25 07:27:01'}", "d/m/yyyy")# gives
this:   25/5/2006

Does anyone know what's going on here? or is it the Thursday gremlin again
trying to send me up the wall?

-- 
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241418
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to