From: Joe C. <jo...@sw...> - 2002-03-24 09:27:38
|
Ok. I'm probably wrong about the regex (I /always/ have to use trial and error to get them right). I'm sure Jamie will know better than both of us how to fix it for good. ;-) Steve Sloan wrote: > OK couldn't get the +(am|pm)?\s to work and as my programming skills aren't > that good I just removed that piece of the code ie. > > and made it look like this > (\S+)\s+(\d+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+/i) > > and now works just fine > > Steve > > ----- Original Message ----- > From: "Joe Cooper" <jo...@sw...> > To: "Steve Sloan" <st...@la...>; "Webadmin-list" > <web...@li...> > Sent: Sunday, March 24, 2002 5:12 PM > Subject: Re: Can't get hardware time to set properly? > > > >>Interesting...Your box is slightly different than any of my boxen, i.e.: >> >>6.2: >>Sun Mar 24 00:43:03 2002 -0.926708 seconds >> >>7.1 (with time set incorrectly ;-): >>Sat 23 Mar 2002 06:22:46 PM CST 0.928216 seconds >> >>7.2: >>Sun 24 Mar 2002 12:31:19 AM CST 0.633990 seconds >> >>Yours: >>Sun 24 Mar 2002 15:47:42 CST 0.691930 seconds >> >>The possible parsing options are (note the missing AM|PM from my 7.x >>entries): >> >>/^(\S+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(\d+)\s+/ >> >>/^(\S+)\s+(\d+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(am|pm)\s+/i >> >>Neither matches yours. The first hits my 6.2 output. The second gets >>the other two. Yours doesn't have a am|pm where Webmin expects it...a >>fix would be to modify the elsif to a regex like this: >> >>/^(\S+)\s+(\d+)\s+(\S+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(am|pm)?\s+/i >> >>The question mark makes the am|pm optional. Let us know if that fixes >>it, and I reckon Jamie will gladly put it into the next version. >> >>Steve Sloan wrote: >> >>>Sun 24 Mar 2002 15:47:42 CST 0.691930 seconds >>> >>>I do have a recompiled kernel with FreeSwan added, shouldn't think this >>>would affect anything. >>> >>> >>>Steve >>> >>>----- Original Message ----- >>>From: "Joe Cooper" <jo...@sw...> >>>To: "Steve Sloan" <st...@la...> >>>Cc: "Jamie Cameron" <jca...@we...>; "Webadmin-list" >>><web...@li...> >>>Sent: Sunday, March 24, 2002 2:40 PM >>>Subject: Re: Can't get hardware time to set properly? >>> >>> >>> >>> >>>>Your system has something botched on it. I'm not having any of the time >>>>problems you're seeing on my RH 6.2/7.1/7.2 boxen with Webmin 0.94. >>>> >>>>What does hwclock give you on the command line? >>>> >>>>I doubt this has anything to do with Webmin. >>>> >>>>Steve Sloan wrote: >>>> >>>> >>>>>Jamie, >>>>> >>>>>Just upgrade to 0.94 to try and overcome this problem but now I am >>>>> >>>>> >>>getting a >>> >>> >>>>>Unrecognized hwclock output format >>>>> >>>>>where the system time should be. I am using RH7.2 >>>>> >>>>>Steve Sloan >>>>> >>>>>----- Original Message ----- >>>>>From: "Jamie Cameron" <jca...@we...> >>>>>To: "Michael Chinn" <mc...@tu...> >>>>>Cc: "Webadmin-list" <web...@li...> >>>>>Sent: Sunday, March 24, 2002 11:48 AM >>>>>Subject: Re: Can't get hardware time to set properly? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Michael Chinn wrote: >>>>>> >>>>>> >>>>>> >>>>>>>Greetings! >>>>>>> >>>>>>>I have Webmin 0.92 and RH 7.1 running successfully with Apache, >>>>>>> > Samba, > >>>>>>> >>>>>and >>>>> >>>>> >>>>> >>>>>>>Postfix. >>>>>>> >>>>>>>My Question: When using the "System Time" function, I am able to >>>>>>> >>>>>>> >>>>>>> >>>>>retrieve >>>>> >>>>> >>>>> >>>>>>>the time from "time.nist.gov" and sync the server system time from >>>>>>> > that > >>>>>>>(time) server. I performed this and my system time reflected the >>>>>>> >>>>>>> >>>>>>> >>>>>correct >>>>> >>>>> >>>>> >>>>>>>time (meaning March 23, 2002 11:00 am). >>>>>>> >>>>>>>However my hardware time shows Jan. 1 1969. >>>>>>> >>>>>>>I tried to use the "sync hardware time with system time" but the >>>>>>> >>>>>>> >>>>>>> >>>>>hardware >>>>> >>>>> >>>>> >>>>>>>time remains Jan. 1, 1969. So I rebooted the server to see what was >>>>>>> >>>>>>> >>>>>>> >>>>>going >>>>> >>>>> >>>>> >>>>>>>on within the BIOS. The time setting within the BIOS was correct >>>>>>> >>>>>>> >>>>>>> >>>>>(meaning >>>>> >>>>> >>>>> >>>>>>>March 23, 2002 11:00 am). >>>>>>> >>>>>>>Why would the hardware time function not pick-up the time from the >>>>>>>BIOS? And why would the hardware time function not take the time >>>>>>> >>>>>>> >>>>>>> >>>>>setting >>>>> >>>>> >>>>> >>>>>>>from the system time? >>>>>> >>>>>>Have you tried upgrading to webmin 0.94 ? There was a bug in previous >>>>>> >>>>>> >>>>>> >>>>>versions >>>>> >>>>> >>>>> >>>>>>that caused this problem if your system was set to use a non-english >>>>>> >>>>>> >>>>>> >>>>>language. >>>>> >>>>> >>>>> >>>>>>- Jamie >>>>>> >>>>>> >>>>-- >>>>Joe Cooper <jo...@sw...> >>>>http://www.swelltech.com >>>>Web Caching Appliances and Support >>>> >>>> >>>>- >>>>Forwarded by the Webmin mailing list at >>>> >>>> >>>web...@li... >>> >>> >>>>To remove yourself from this list, go to >>>>http://lists.sourceforge.net/lists/listinfo/webadmin-list >>>> >>>> >>> >>> >> >> >>-- >>Joe Cooper <jo...@sw...> >>http://www.swelltech.com >>Web Caching Appliances and Support >> > > > -- Joe Cooper <jo...@sw...> http://www.swelltech.com Web Caching Appliances and Support |