06-12-2002, 09:51 PM
in the top bar of www.jamcalc.org/test.php, it shows the current date and time when you opened the site. the time is supposed to be set to GMT, but it doesnt look right.
here is the code i used:
<?php echo gmdate ("M d | Y");?> Login Time: <?php echo gmdate ("H:i:s");?>GMT
06-12-2002, 10:26 PM
but it doesnt look right.
How do you want it to look? I think you have the correct time there. Do you mean you want a different format?
06-12-2002, 10:33 PM
well, i looked at it when it was 9:30pm gmt (arizone time) and it said it was 4:30.
how do i make it display in military time?
06-12-2002, 10:42 PM
hmmm ... Maybe I'm missing something. Right now it looks how I think you want it to look. I see ..
Login Time: 04:36:06GMT
I'm pretty sure that is correct. Also, your using H:i:s , which means it's already displaying in military format. When it turns 1 o'clock in the afternoon, your time should say 13:00:00.
Sorry if I'm not answering you properly, but it looks okay to me. Am I missing something?
06-12-2002, 10:46 PM
well if its already displaying in military time and its 9:00 PM, then it should say 21:00:00GMT
according to how it is right now, its 4:00 AM (in the morning)
06-12-2002, 10:57 PM
Ah ... that's why I don't understand what your talking about then. I thought it really was 4 in the morning right now. Are you sure it's 9:00 GMT right now?
Let me look a little deeper into your problem now.
06-12-2002, 11:01 PM
According to greenwichmeantime.com, it's 05:00:00 (in the morning) GMT. Where are you getting 9:00 PM from?
Your GMT time on your site and the GMT time on greenwichmeantime.com's site correspond. I think your code is already correct. :)
06-12-2002, 11:07 PM
i'm not very smart when it comes to things
06-12-2002, 11:10 PM
ha .. I wouldn't say that, I've seen some of your posts, and your plenty smart. Every programmer makes mistakes. ;)