Wrapping it up
Adding our visual elements and testing our application out.
Video Transcript
00:00So really the last thing that's left for us to do is just output this onto this into our flash
00:05So I'm gonna just to keep things simple. I'm just gonna grab a text field and I'm gonna do really anything to it and
00:12I'm just gonna create a little text field right here and
00:16I'm gonna Center it and just give it a name. We're gonna give it tea time
00:22No pun intended about our friends in the UK that just had a cup of tea
00:27and
00:29Tea time all we really have to do is we could just take our tea time dot text
00:32And we're just put inside of it our dates
00:34So date to string the reason is because we're expecting a string in text and the date is not a string type
00:40And we don't want to get an error
00:41So the date object and every object basically has a to string which basically just brings out the string
00:48So if we run this one more time, we're gonna see that our it's we're getting that value directly into our flash vars
00:54We're getting that value. Sorry directly into flash and we could even test it out by just going into
01:01our
01:03Browser and we could go into that HTML that we've created earlier and now we're getting the actual time in the day
01:09That was earlier today, which is going to be the time of our event in the future when we create our event now
01:14You might be asking me Ben. That's all great
01:16But how do you know that this is going to work locally on my computer in the UK or my computer in?
01:24Australia which we got a new user today that came from Australia, which is kind of cool
01:29which also asked me today, what time is the event and I
01:33Couldn't tell him but I was quite sure that it was really really early in the morning. So he's probably sleeping this one off
01:39But if we just go into our settings and I'm just gonna go to my Mac settings here date and time
01:44We could do that. What's on your PC and we're just gonna change my time zone
01:48So I'm gonna change my time zone and let's go to somewhere else. Let's see what we have here
01:53East Africa, maybe not let's go to let's go to New Zealand kind of find out over actually
01:59Let's go to the country of our newest member. Let's go to the Australian Central Time Standard
02:05Central Time Standard Time. I'm mixing this one out Australian Central Standard Time and let's see what time was it in
02:13Australia when it was 444 here in New York and if I refresh my application now that I'm in that time zone
02:20It's gonna tell me that it was 6 a.m
02:22It was 6 a.m. And 14 minutes in Australia
02:25What this gave me now is I don't even have to create all these different variations of time
02:29I don't have to tell users what time isn't in every specific place
02:32I could just tell them just check this widget and it's gonna tell you exactly what time the event is going to happen in
02:38Your local region. So so that isn't this cool?
02:41I'm I'm really excited about this
02:44This basically says all I have to do is just basically know what time my event is
02:48put that value in my flash bars and
02:51Automatically everyone that wants to know what time our event will be will know and I don't even have to worry about my time zones
02:56Because automatic it's gonna tell them what time zone it is
02:59So even if the computer is wrong or they're on a computer with a different time zone
03:03They're gonna see what time zone it actually is going to be on
