|
Pachi had a great idea for adding time / date tags. They will take a time or date in one format and display it in your local timezone. You will first need to edit your profile to select your time zone for this to work.
The input is very flexible, allowing you to input in either numbers or some textual methods.
Examples:
[time]13:05 KST[/time] Output: 04:05 GMT (+00:00)
[time]7pm edt[/time] Output: 23:00 GMT (+00:00)
[date]April 28 04:00 KST[/date] Output: Tuesday, Apr 27 7:00pm GMT (GMT+00:00)
[date]next thursday 10am GMT[/date] Output: Thursday, Apr 22 10:00am GMT (GMT+00:00)
|
Wow R1CH, that seems awesome! Good job! Trying it right now!
*Edit* Testing....
05:27 GMT (+00:00)
*Edit Edit* Result: IT WORKS WHEN I TYPED IN 13:57 KST!! YESSSSS!
|
Amazing! Editing my profile asap.
Edit: 04:55 GMT (+00:00)
Result: It works! D:
|
awesome update R1CH. Now no more having to fumble around with time :D
09:05 GMT (+00:00)
test
|
|
That's super sweet. Even sweeter after updating my time zone. :D
Good stuff!
|
after me missing the tourny this morning by 1 hour because i converted times wrong, i must ask why oh why was this not added yesterday !
but srsly, awesome work and really cool feature :D
|
Thats awesome... nice job man. Although all those months of converting in my head are useless now.
|
Haha, this is awesome, ty Rich.
|
Canada8031 Posts
Great new feature! Will calendar events continue to be given in KST, or will the new system be adopted for that as well?
Edit: Oh, and will the time be automatically set forward/back one hour for daylight savings time?
|
|
United States11637 Posts
|
What's pacific-new, what's the diff from pacific
|
Canada7170 Posts
I hope you've accounted for switches in daylight savings when it happens again in fall.
|
Awesome! Sick new feature, I've failed trying to convert time zones to mine on my own too many times before I started using a program to do it lol. Much easier for me ^^
|
haha very nice! [unparsable timestamp format]
|
|
|
On April 15 2010 14:20 Spazer wrote: Great new feature! Will calendar events continue to be given in KST, or will the new system be adopted for that as well? For now it's just the bbcode tags.
On April 15 2010 14:27 semantics wrote: What's pacific-new, what's the diff from pacific Apparently there was a new time zone planned for Pacific, but it was scrapped. It still exists in spirit though.
On April 15 2010 14:28 mikeymoo wrote: I hope you've accounted for switches in daylight savings when it happens again in fall. If it fails, blame PHP!
|
Excellent feature. I also second that it should update the calendar on the right side as well if it wouldn't be too much work. At least something to think about changing in the future if not now.
|
Spenguin
Australia3316 Posts
Oh thank god for this feature, thank you so much R1CH!
|
Very nice.
edit: never mind about that calendar stuff I see someone else asked about it
|
05:59 GMT (+00:00) Wow, that is a neat feature, awesome work ^.^
|
12:00 GMT (+00:00) PST winter 11:00 GMT (+00:00) PDT summer lol i can see this getting confusing on which one to use
|
AWESOME!! timezones is the single most confusing thing that i always google everytime just to make sure.
|
is awesome32277 Posts
04:37 GMT (+00:00)
|
This is pretty useful  Tuesday, May 24 11:01pm GMT (GMT+00:00) ^ wow it can actually figure that out (quote me to see)
|
wow omg! great feature :D and yea i think it should be done with the calender too but great work! 20:34 GMT (+00:00)
|
Would be nice to be able to write the time for my local zone, let's say like: <time>11:43</time> and for it to be displayed for others in their format, something similar to let's say <time>09:43 GMT</time>
|
On April 15 2010 15:44 arbiter_md wrote: Would be nice to be able to write the time for my local zone, let's say like: Yeah I would have liked this too, unfortunately the conversion from a timezone only accepts abbreviations (EDT, GMT, CET, etc) and the to timezone is in the tzdata-style "Continent/City" format. I may consider some workarounds, but it isn't that hard just to specify your local timezone each time and avoids any ambiguity, eg if a mod edits your post.
|
Testing to see whether this works for New Zealand Time Zone.
09:53 GMT (+00:00)
Yep, even New Zealand gets the time code loving. Now I don't have to do weird maths to figure out when games are. Cheers there R1CH.
|
On April 15 2010 15:27 Not_Computer wrote:This is pretty useful Tuesday, May 24 11:01pm GMT (GMT+00:00)^ wow it can actually figure that out (quote me to see) I quoted it...what the heck? Oh well. More functionality is better than less, I guess.
|
On April 15 2010 15:54 Speedbump wrote: Testing to see whether this works for New Zealand Time Zone.
09:53 GMT (+00:00)
Yep, even New Zealand gets the time code loving. Now I don't have to do weird maths to figure out when games are. Cheers there R1CH.
oh awesome this has been a long time coming 
Thanks R1CH!
|
OMG yes!! I always wondered why there wasn't some sort of support for different time zones. R1CH is truly a wizard.
Test: 13:38 GMT (+00:00)
|
Test : 13:44 GMT (+00:00) Cool!
|
Wow that's quite awesome
Wednesday, Apr 14 3:00pm GMT (GMT+00:00) 13:44 GMT (+00:00)
Edit: so Hm why does [date]today[/date] show up as 11am the 14th?
|
edit: ooh I just read the OP again, now I geddit!
|
|
Thanks for this! Now I no longer need 3 additional clocks in my data and time settings!
|
Aotearoa39261 Posts
As much as I'd like to take credit for suggesting this, this was actually pachi's doing!
|
14:12 GMT (+00:00) just checking how it works, this is really neat feature. Thank you R1CH
|
Wednesday, Apr 14 3:00pm GMT (GMT+00:00) Thursday, Apr 15 2:17pm GMT (GMT+00:00)
That's weird, "today" shows: Wednesday, Apr 14 5:00pm CEST and "now" shows: Thursday, Apr 15 4:17pm CEST
imo today should only show date aswell.
|
|
Awesome stuff, thanks pachi or plexa for the idea and R1CH for implementing it!
|
On April 15 2010 23:17 disco wrote: Wednesday, Apr 14 3:00pm GMT (GMT+00:00) Thursday, Apr 15 2:25pm GMT (GMT+00:00)
That's weird, "today" shows: Wednesday, Apr 14 5:00pm CEST and "now" shows: Thursday, Apr 15 4:17pm CEST
imo today should only show date aswell. Oh now I think I get it, today show the hour at 0:00 KST so about 23 hours before now
|
konadora
Singapore66307 Posts
|
|
wow thanks, I always hated calculatting times to my timezone
|
edit: sorry please delete
|
Tuesday, Apr 20 2:51pm GMT (GMT+00:00)
"next week +1 day +2 minutes"
nice :3
|
|
oh thanks, this change was way overdue. Now it just needs to change the posting times in the forum post list, calendar, etc. Thank you!
|
cant wait for calendar with this :D im always doing math to see when the games are supposed to happen ;_;
|
Testing: [unparsable timestamp format] Testing: 12:00 GMT (+00:00) Testing: 11:00 GMT (+00:00)
I'm surprised it doesn't accept EST5EDT, CST6CDT which would deal with dst. If you wanted you could add those custom. These work in mysql and such, I would think they would work for you. Maybe there is some tzinfo you can add?
|
United States4796 Posts
Amazing job, R1CH! Thanks for everything.
|
I know this is a first step, but I still can't wait for the calendar events to support this.
Anyway, if one wants to check the time of an event, just write a post with the hour and click preview
|
you're the man R1CH! I also support the calendar implementation.
|
|
Very nice, no more trying to calculate the massive time difference between west coast canada and SK...
|
Excelent! Just edited my profile and all times are now in CEST. Now if only you can make this to work with the calendar ervents as well.
|
|
|
Whenever daylight savings begins, this is gonna break all the times that are shown because people will be putting est on everything and then when the clocks all change, those times will not with it.
Also when I put plain old "7:00" it interprets that as 18:00 EDT which is not only the wrong dst setting, but it is way off because the server assumes korean time for everything.
22:00 GMT (+00:00)
A better way would be to if my time zone is set, putenv("TZ=<whatever my timezone is set to>") before you call strtotime, then set it back to korean afterwards if necessary. This way, not only will the time be correct, every time the post is rendered, if daylight savings time has flipped, the time will auto correct itself. This way, people don't have to specify a time zone at all when they post a time, they just go [time]7:00[/time]
|
Germany2896 Posts
What are relative dates relative to? 1) Today -- changes all the time 2) the date of the post -- Fails on quote 3) date of the last edit? -- Fails on Quote and edit I don't feel comfortable with any of them. But date of the post is probably the best bet.
Now we just need a title(mouse over hint) for KST and UTC
|
Seems to be bugging for me? It was working at first but now it's telling me to change my timezone again.
|
R1CH, what is it like to know how to wield magic?
|
On April 16 2010 02:05 MasterOfChaos wrote: What are relative dates relative to? I agree this is less than ideal, and hopefully relative dates will be the minority use (unfortunately there is no option to disable them). Currently it uses the date of the post.
|
Pretty awesome :D
Thanks
|
yaaaaaaaaaaa
chogo-wizarduuuuuuuuu
chaaaa!!!
|
Vatican City State2594 Posts
Very useful, thank you!
I also noticed that poll ubb code has been simplified, makes it look much cleaner! Thanks!
|
R1CH, once a user selects the timezone in their profile, the converted dates just look like normal text. Could you make it so that they are made abit more obvious like bolded or underlined automatically? would help alot
|
This is why TL is the best website.
|
Is there any way to set the output time to 12-hour clock?
|
On April 16 2010 02:57 Lyzon wrote:R1CH, once a user selects the timezone in their profile, the converted dates just look like normal text. Could you make it so that they are made abit more obvious like bolded or underlined automatically? would help alot  What would also be cool would be a mouse-over popup thingy that shows the time/date converted into the most important time zones (eastern, western, CET and Korean time) when hovering the mouse over a time/date.
|
R1CH/pachi for life
09:00 GMT (+00:00)
|
Great feature ! but is there any chance of adding more cities to the list since some of us come from smaller countries ?
|
|
18:45 GMT (+00:00)
Nice :D
|
On April 16 2010 03:17 Kgosi wrote: Great feature ! but is there any chance of adding more cities to the list since some of us come from smaller countries ? The list isn't compiled by us, those are the built in timezones for PHP / Linux. If your city isn't there, just pick one that's in the same time zone.
|
oh jk i refreshed the page and all changes applied!! niceeeee
although the top right clock and the calendar clocks haven't changed
|
oh wow, this is great! i used to have an additional app to tell time, lol. this makes it easier.
|
Where can i input the korean time and change it to mine???
|
This is awesome.. but who the hell views TL from Antarctica?
|
Thursday, Apr 22 10:00am GMT (GMT+00:00) *GASP*
|
Nice feature, it won't really help me though because I have already became accustomed to kst
|
|
5391 Posts
|
Would be so cool if we could have custom calendars!
|
R1CH delivers, yet again.
Truly standardizing the KST time zone is a good move too I think. Often I just don't have a clue exactly how many hours I have to subtract. I remember one occasion of tuning into a certain tournament and finding i'd missed almost an hour of precious broodwar action.
|
wait, so this will show each post in accordance to my time zone? That is awesome. wait that's not what it does. what does this do?
|
On April 16 2010 12:41 CharlieMurphy wrote: wait, so this will show each post in accordance to my time zone? That is awesome. wait that's not what it does. what does this do?
"time / date tags. They will take a time or date in one format and display it in your local timezone."
|
On April 16 2010 12:41 CharlieMurphy wrote: wait, so this will show each post in accordance to my time zone? That is awesome. wait that's not what it does. what does this do? when someone posts a time/date for something, it automatically converts it on your end to show up as the time/date for your timezone.
|
Saturday, May 08 3:00pm GMT (GMT+00:00)
|
Would it be possible that the time shown in "upcoming events" would be based on ones timezone. This would be really awesome as I and maybe alot of others wouldn't mess up the 1830 korean time.
This would be really awesome!
Also, cool feature already as it is.
Edit: Ok others has pointed this out.
|
Cool beans. Math makes my head hurt anyway.
|
Korea (South)11584 Posts
|
07:48 GMT (+00:00)
im so lost. lol
i just typed (time)kst(/time)
and it gave me my time of 3:18, but when i typed EST it gave me
21:18 GMT (+00:00)
moar info plz
|
Aww man, now I'll never have to use those awesome time conversion websites anymore. Such a loss.
Thx R1CH, and Pachi for coming up with the idea!
|
I have my time set to pacific and every time after i close my browser i loose it and have to reset it in my profile, is that information stored in a cookie i'm deleting or something as my browser doesn't store any data after i close it.
|
thats awesome, thank you very much
|
Nice, will it be added to the events calendar as well?
|
Just noticed this, works like a charm. Thanks R1CH!
15:41 GMT (+00:00)
|
[date]now[/date]
Cool, it's Saturday, Apr 17 4:05pm GMT (GMT+00:00).
|
Hey this looks very neat! Will give it a shot! Ty R1CH!
|
Sexy. Good job R1ch.
edit:
On April 17 2010 18:57 JohannesH wrote: Nice, will it be added to the events calendar as well? This would be awesome.
|
I'm liking this feature a lot
When will YellOw win an OSL? [unparsable timestamp format]
|
Thursday, Apr 22 7:00pm GMT (GMT+00:00)
|
this is awesome right now 16:20 GMT (+00:00)
|
Awesome feature! thank you :D
|
Now i have to do less math in my head - Big thanks to R1ch
|
On April 15 2010 14:28 mikeymoo wrote: I hope you've accounted for switches in daylight savings when it happens again in fall. I chose central and it put me in CDT, which essentially doesn't exist in the fall (becomes CST), so I am assuming it works.
|
Thanks R1ch, I was having trouble getting my time zone to work correctly -- my profile was already set for pacific, but the [local] button was still telling me to set my profile.
If anyone else has this problem, I fixed it by simply reselecting my zone, entering my current password, and updating. Works now.
Thanks for the new code! especially love the [date] next thursday ]/date[
|
Hey guys The new local time/date functions are awesome, but I seem to have a weird bug in that every time I log out, I am unable to view event times, etc in my local time when I log back in unless I go back to profile -> edit location -> save changes. My location is still listed as Europe/London when I check, but unless I actually go to the edit profile page & save every time I log in, localtime doesn't seem to work for me
Kev
|
I am having the same problem as weepingblades.
|
this is by far the most useful forum code of all forums. More websites/forums should have this feature. First time I saw it (in a key contest post), I was like "wha? how do they know my time zone? surely, this is not a contest for new zealand only? the poster doesn't appear to be from new zealand".. yes, i'm a silly sausage.
Anyhow, many thanks for this feature. To misappropriate a quote from Lz, "it helps a TON".
|
<3 this makes life so much easier.
|
YES!!! <3 <3 <3 looking up timezones constantly is so fucking annoying! and my brain always gets so confused when dealing with them :p
|
On April 19 2010 08:36 weepingblades wrote: Hey guys The new local time/date functions are awesome, but I seem to have a weird bug in that every time I log out, I am unable to view event times, etc in my local time when I log back in unless I go back to profile -> edit location -> save changes. My location is still listed as Europe/London when I check, but unless I actually go to the edit profile page & save every time I log in, localtime doesn't seem to work for me
Kev
This should be fixed now, thanks.
|
Hey Rich, I entered London and it's giving me BST. I have no idea what that stands for but it seems to be 3 hours ahead of GMT. Halp pl0x?
|
Yeah I'm having the weepingblades problem too. It seems to sort of reset itself after I've been logged in for awhile. But the setting is still correct in my profile. But none of the post times will change from korean.
|
On April 21 2010 05:47 sc4k wrote: Hey Rich, I entered London and it's giving me BST. I have no idea what that stands for but it seems to be 3 hours ahead of GMT. Halp pl0x? BST is British Summer Time and should only be GMT + 1. I'll double check it.
Confirmed, it's GMT + 1 for me which is accurate.
|
Saturday, May 22 9:00am GMT (GMT+00:00)
EDIT: accidental bump, meant to hit preview X_X sorry sorry sorry
|
If this were updated to the upcoming events on the right side it would be awesome. ^^
|
more people need to know of this anyway 
plus, it's not like it was classified as an 'Old thread'
|
testing
Saturday, May 22 7:00pm GMT (GMT+00:00)
edit: it seems it converts EEST wrong, CET is +1 to EEST, but currently it adds +2 :S
|
Holy crap, you're an awesome programmer. Good work.
|
On May 22 2010 06:35 Grobyc wrote:more people need to know of this anyway  plus, it's not like it was classified as an 'Old thread'
yeh TRUE DAT
|
On May 22 2010 06:38 Mikami_ wrote: testing
Saturday, May 22 7:00pm GMT (GMT+00:00)
edit: it seems it converts EEST wrong, CET is +1 to EEST, but currently it adds +2 :S Keep in mind CET is not in use currently, the time zone is CEST due to Daylight Saving Time. Are you sure you didn't mean 20:00 CEST?
|
dear lord these time zones between daylight saving and none just makes it confusing haha. Consider implementing it to automatically take into account CEST or CET for time of the year so etc. So then you can just use PST CST EST instead of both PDT CDT EDT etc.
|
Unfortunately the code that does the parsing is inside PHP, it's not my code so I have no control over how it interprets time zones.
|
|
|
|