[Zope] Further info about ZopeTime() not returning correct values
   
    Bill Anderson
     
    banderson@boi.hp.com
       
    Thu, 13 Jan 2000 16:03:12 -0700
    
    
  
Guy Davis wrote:
> 
> I'm having some trouble with ZopeTime as well.  I need the current time
> in the following format:
> yyyy-mm-dd hh:mm:ss
> 
> <dtml-var "ZopeTime()"> gives the correct local time but in the wrong
> format.
> <dmtl-var "ZoptTime()" fmt="%Y-%m-%d %X"> gives the right format but
> uses GMT when I need local time.  (I got the formats from a 'man date'
> under Linux) As far as I can tell as soon as I specify a fmt="" string,
> ZopeTime automagically starts returning GMT.
> 
> So is it impossible to format _and_ to get the local time?
This fits with my experience so far.
Whenever you format it, you 'change timezones' it seems.
In my case it uses 'MST" which seems to be 7 hours ahead of me ... (as
opposed to the -5 I had previously thought)
-- 
Bill Anderson 			Linux/Unix Administrator, Security Analyst
ESBU (ARC)			bill_anderson@boi.hp.com
My opinions are just that; _my_ opinions.