Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Stupid php date question (new problems!)

2

Comments

  • That flash UTC example you passed off seems a bit wonky. It flashed a bunch of numbers on my screen (not the time at all) and went back to black :/
  • got it working fine :-D new site due to go live very soon, canny wait :-) :-) :-)
  • 3stripe3stripe ✭✭
    edited January 2006
    Now online at http://www.thirdeyedesign.co.uk/ !!! :-D
  • edited January 2006
    Nice. Good subtle use of flash. And i like the colourscheme. The map wierded me out for a while though.
  • Cheers for the feedback! Outta interest, what weirded you out about the map?
  • <?PHP print("time=".date("His")); ?>

    hmmm, I woulda just used

    <?php echo date('His"); ?>

    But that's just me...
  • FLC: Is echo vastly preferable to print?
  • That is a really nice design 3stripe.
  • I *think* it's pretty much identical
  • I think that print() returns a status value, whereas echo() does not, so in that respect echo() might be a tad on the faster side. Some guy did an actual test of this one time and found echo to be like 4% faster or something...
  • I dunno 3. I think cause it's negative colours (or is it positive, i forget). Eitherway for a few seconds i ended up wondering why there was suddenly a super continent which was almost identical in shape to the sea.
    It might even just be because i'm used to focusing on the middle of maps to see england. Who knows.
  • that ok, i liked the idea of reversing the map as you are so used to seeing them differently i suppose...
  • 3stripe3stripe ✭✭
    edited February 2006
    Folks, I'm getting complaints from people in the states that the time shown at http://www.thirdeyedesign.co.uk/ is out by an hour. However when I view it myself from here in the UK the time difference is correct (+5). Can someone in the US confirm this for me? Ta!
  • daylight savings.
  • nice site btw, i'd recommend a prototype to zoom in on some of the smaller text tho for those of us in hi-res :)
  • hehe thanks dude. the debate at my work is still raging about increasing the font size, at least for news items! yeah i figured daylight savings as well... what i can't work out is how to only subtract that difference for folks not in this timezone... err is this making sense cos i really can't figure it out... basically the problem is that i need to adjust the time differently for different time zones. i thought that i'd found a way to just take gmt time from the server, but it seems to get screwed up by something else.... hm
  • Yeah, also depending on which version of flash you're flooring it at (my guess it could be outputting as 6 for general compatibility) some of the time/date functions are known to be terribly poor when run via the plugin and calculating the offset. Any fix I can think for this at the moment would be terribly ugly.
  • Although I'm not entirely sure what you're talking about there lech, i assume it's within the context that the time is being obtained by a php script? Your talking about plugins doesnt seem to go along with that though i could have absolutely no idea what i'm talking about (quite likely)
  • mini, from flash 5 and up, you're able to get the time representation of the local client and apply an offset to that within a dynamic text field. The only problem with that is that certain versions of the flash player offer flimsy support for actually getting the correct offset based on the formula supplied to get the final answer. Thus causing the hour drift in 3stripes flash file and an incorrect time/date representation :) One hack would be to just poll a server for the current *real* times in those time-zones (this should calculate dst if the server recognizes it), present it to flash, then just start counting seconds/minutes/hours from there building up. That prevents flash from having to guess if dst is in effect, unless in flash mx2004 and up has a way to detect it.
  • Well as far as i'm aware he's not using the inbuilt flash time checker based on the local client - i think he's grabbing the time from a php script running on his server. Unless he's not anymore and i'm misreading the thread. I'm a whole load of confused over here.
This discussion has been closed.