Java :: Lost In Dates And Timezones?

Jun 4, 2010

I'm working on an application that stores conferences with their start and end date. Up until now, I was developing in Belgium and my server is in France, so everything is in the same timezone, no problem. But today, I'm in San Francisco, my server is in France and I noticed I have a bug.I'm setting dates from a Flex client (ActionScript automatically adapts date display according to client local timezone, which is GMT-8 for me today. My server runs on Hibernate and MySQL in France (GMT+1). So when I look at my database using phpMyAdmin, I see a date set to "2010-06-07 00:00:01" but in my Flex client it displays "2010-06-06 15:00:01".

Ultimately, what I want is that the dates are displayed in the local timezone of the event, which is the date I set it to. So when I'm in Belgium and I set the start date of an event to be "2010-06-07 00:00:01" I want to retrieve it that way.But I'm lost as to what layer adapts what. Is timezone stored in DATETIME MySQL columns (I can't see it in MySQL)? Does Hibernate to anything to it when it transfers it to java.lang.Date that has Timezone information?

View 3 Replies


Similar Posts:


Java :: Login Session Lost After Flex Chart Is Displayed From Jsp?

Jun 4, 2010

I have a java web application. When I log in to that application and navigate to a jsp which has flex chart embeded into it, the chart displayes just fine. I am using blaze ds remoting object mechanism. But when I want to navigate to a different page, it logs me out of application since the login session is lost.

View 1 Replies

IDE :: Countdown Ads Specific To TimeZones

Jun 24, 2009

I need to create some countdown ads using Flash CS3 for an event which will be happening at the same time worldwide. So, when putting the endtime in, I need each corresponding time zone in the USA to adhere to the time difference. Is this possible to do, all within the same ad, rather than having to create an ad for each time zone?

The code I'm using runs thus:

this.onEnterFrame = function() {
var today:Date = new Date();
var currentYear = today.getFullYear();

[Code]...

View 5 Replies

ActionScript 2.0 :: Countdown Clock Insists On Correcting For Timezones?

Feb 19, 2009

What we have is a countdown clock that hits 0 at the start of a global sailboat race. The race start is in New Zealand, our servers are in Chicago. We're using a php script to pull the time from the server in Chicago, but for some reason the clock looks different in each time zone. This is a problem, because if your at the race it will say 10 minutes to the start, but if your in Chicago, it will say 10 hours or whatever it is.Here's the site.

Here's the code, AS2:

Code:

var targetDate:Date = new Date(2009, 1, 20, 19, 15, 0, 0);/*correct start time in chicago time. start time is feb 21, 01:15 */
var currentDate:Date;
if (cMilli != undefined) {

[code]....

View 1 Replies

Java :: Convert Byte Array From Action Script To Image In Java And Save It

Jun 25, 2010

I am a .NET Developer, but the question I am having is not related to .NETPlease keep this in mind even if my question sounds very trivial.This is my question:We have an swf in the browser, which communicates with a java extensionIts done using Smartfox Server(Used for MMO apllications)From the swf we are grabbing a portion of the screen as "Byte Array" in action script(3).And in Java, we are calling a function that converts the ByteArray to Image and then saves it.ur Java developer is encountering the errorSo basically, what I would like to know is this:How to accept the object type Byte Array from ActionScript in Java?Whats Java object type that is mapped to Byte Array in ActionScript?The conversion part is easy, I dare say. code in the ActionScript Section

public function savePhoto(uName:String, ba:ByteArray, descr:String):void{
var obj:Object = {};
obj.arr = ba;

[code]....

View 3 Replies

Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Java :: Flex - Unable To Send MIDI File Name To Java To Playback Music?

Oct 27, 2010

I could play MIDI file where "filename" is a String type with "asd.mid" value. However, I tried to sent AIR's nativeprocess command to Java, it shown "could not read" error.

[Code]...

View 1 Replies

Java :: Typical Development Workflow/process Developing With Weborb For Java With Flex?

Sep 15, 2011

Meaning specifically, what steps do you go through when creating a new application using these tools?

View 1 Replies

Java :: Migrating Existing Java And Flash Applications To Android (Google TV)?

Aug 9, 2011

I have a client-server multigame suite for PC ("kind of" cross-platform using cygwin), which is developed in Java(game menus and database management), C++ (server side), and adobe Flash (game graphics & interaction).

I have never tried to develop for android, so i have no experience.I am thinking of migrating this suite to google TV. So i would like someone with android experience to give a clue on the following :

1) Is it going to be easy to migrate the Java application to an Android application?

2) What kind of Flash support does Android have? Can it load directly swf applications? Does it have to load swf's through browser?

3) Can i find any kind of performance indexes for google TV hardware?

View 1 Replies

Java :: Load External Page HTML Via Javascript Or Flash Or Java?

Nov 13, 2011

I need to load somehow the html code of a webpage A into a javascript string of another webpage B, on a different host. I know this is impossible to do with javascript alone because of the same origin policy, and I know I could do it loading the page via php on my server and then send results back to the user's client but I wouldn't be able to handle so many requests, so I need it to be done directly by the user's browser. I can use nearly whatever browser scripting language/applet framework common enough to be installed on the majority of my users' computers, like flash and java.On example, what if I use flash or java to load the external html code and then call a javascript callback function providing the source? Could this work?

View 2 Replies

ActionScript :: Java - Flex ArrayCollection Of Number Objects To Java Collection<Long> Using BlazeDS

Mar 24, 2010

I am using Flex 3 and make a call through a RemoteObject to a Java 1.6 method and exposed with BlazeDS and Spring 2.5.5 Integration over a SecureAMFChannel. The ActionScript is as follows (this code is an example of the real thing which is on a separate dev network);

[Code]...

View 2 Replies

Java :: Any Opensource Alternative To Squish To Test Flash / Silverlight / Java Applet Gui Objects?

Jun 3, 2011

If one doesn't have the source code, the only to test is to send keystroke and mouse move so I found this product but it's not free and opensource price is not even known :([URL] Squish supports automating interactions and testing non-HTML/DOM elements, that is, native objects, which are embedded in a web page. This is done at a fairly abstract level, which means that mouse and text input can be recorded and replayed.

In addition it is possible to inspect embedded native objects with the Spy tool and to insert verifications for these native objects. All of a native object's public properties can be accessed in test scripts.

View 2 Replies

Java :: Web Multiplayer Game In FLEX And Java - Build The Server Clients Managing System?

Aug 4, 2011

I'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.

View 1 Replies

Java :: Performance - Code Doesnot(only Sometimes) Compiles In Java+flex (+ BlazeDS+Tomcat ) Combined Project.a

Aug 13, 2010

i am working on a flex+java combined project.My IDE and computer configuration is as follows:

[Code]...

When i make a small change in Flex code (eg, reposition of a button...anything), and run the project on server, it does make any change on output. Actually it depends on my luck... because it makes change in output randomly.what is is happening? tried rebuild, republish, clean , restart server, restarting the IDE, restarting the computer all available feature i could think. Also, i created a simple flex project on IDE and compiled it..... everything is compiled and displayed on output.

View 2 Replies

AS3.0 :: Java - Flex - ArrayList Of Custom Java Objects Over BlazeDS

Dec 7, 2010

Right away i just try to explain my problem: Using BlazeDS i got the following Javaclasses:

[Code]...

Then i got a Flex service class calling BlazeDS and executing the getCategories java method. Since Flash dosn't seem to understand typed arrays, the result from that method which i get back in flex is a simple array of untyped objects (the mapping dosn't seem to work here, even tought the class category exists in flex and has the same properties).
thats the first thing. but however, i'm converting the untyped objects manually into objects of the category.as class. the second thing is that categories have child-categories within the java object, which are also ArrayLists of the type category.java. the problem about that: my result event object only contains the first level of categories, looking into them the children are allways null. i dunno why they are empty, since they ARE part of the java object category.

and the third thing (the strangest by fast), you maybe noticed i named the properties of the category.java class strange, like idCat and nameTest instead of simply id and name. why that? because the property names of my flex result objects dont seem to change when i change the java objects properties names (result object properties are named "id" and "name" but the java class object properties are named "idCAT" and "nameTEST"). that it REALLY strange, since if i set the properties, like you see at nameTEST = "TESTNAME" it IS recogniced by flex, only the proertyNAMES dont seem to be recognized at all.

[Code]...

View 4 Replies

ActionScript 2.0 :: CS3 - How To Compare The Dates

Oct 6, 2009

How does one Compare Dates, as in


If (sampleDate is before TodaysDate) {
do something
}elseif (sampleDate is after TodaysDate) {
do something else
}

View 4 Replies

ActionScript 3.0 :: Best Way To Receive AMF Dates?

Dec 22, 2009

Whats the best way to receive AMF dates? The queue is an array of vo objects, and some testing vars.
My VO
public var itemID:uint;
public var itemSource:String;
public var itemCategory:String;
public var itemTitle:String;
public var dateString:String;
[Code] .....

View 1 Replies

Flex :: Sorting Dates In Adg

Apr 4, 2011

I have an advancedDataGrid and I would like to sort the adg according one AdvancedDataGridColumn(studyDate) which use strings in format DD/MM /YYYY(I receive like this from the server):But i find another problem, I need to sort the columns of the adg the first time it displays so I used the following function but It doesn't sort from the recent day to old one, I do not know what I can I do cause I set sort.descending= true, any ideas?[code]

View 1 Replies

Java :: Flex - Create .swf In Java By Using 'ant' File & .mxml?

Apr 11, 2012

I am newer with flex technology.I am creating a chart using ant file & .mxml in eclipse my 'ant' file executes properly but it gives following error when i opens a .swf file which is created auomatically:

Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL

[Code]...

View 1 Replies

Java :: Handle Custom Java Exception In Flex App?

Mar 18, 2010

we are using BlazeDS as a proxy between Flex and Java. The approach is the same as in

[Code]...

View 3 Replies

Java :: Implement A Web App With Blazeds+java+flex+tomcat?

Mar 23, 2010

I'm coding a web app in flex blazeds and Java. I installed the Eclipse plugins for using WTP mixed project. I'm using flex's server that uses an emulate of tomcat when i ran my flex service the web app got the datas, everythings is ok. the problem is when i copy the project with all files generated by flex in my tomcat or the blazeds's tomcat, it doesn't work, this is becasue i want to implement my app on a server the error is:[code]
i don't know why tomcat doesn't find the class of flex.messaging.endpoints.AMFEndpoint that is used for my-amf 'URL...'. all works well in the emulated server that flex has.

View 4 Replies

Java :: Adding Two Num Flex 3.0 As Front End And Java As Back End?

May 24, 2010

i hava two text boxs in flex.have to add two txt boxs values in back end java and have to return back to third text box in flex.

View 1 Replies

Java :: Accessing A Java Method In A Flex Object?

Jul 16, 2010

Assume I have the following java class public class Square {

[Code]...

Inside an actionscript class, using RemoteObject, I invoke the java method SquareDAO.findById(Long id) an I get an Object with the following: But I don't get the area. How can I invoke the method getArea() ?

View 1 Replies

Java :: Java, BlazeDS And Config File For Application?

Nov 11, 2010

I'm programming Rich web applications with Flex and Java on Flex Builder 3 using blazeDS and SharedObjects.Now I need that my program will use configuration file.so, I need that my Java class will read it at the first time but the default path of java to read and write files is c:program filesFlex Builder 3 and not my application directory inside the tomcat webapps directory How can I read the config file from the java class without write the path hardcoded in the java?

View 1 Replies

External TXT File ONLY On Specific Dates?

Jan 3, 2006

for my latest task at work, oh what joy, i have to create a small banner thing which reads data from a text file... BUT... it only reads from the text file IF there is a text file present which i labeled TODAYS date!

Get todays date IF there is a file present in a certain directory which is called todays date.txt (ie. 02042006) then it reads the info in that text file and prints it into a certain area in the flash file. If there is nothing present it just displays the default stuff!!

View 21 Replies

Flex - Set A Date Based On Other Dates?

Apr 10, 2011

I need to set a chart to start at midnight of the current day and end just before midnight of the next day
I'm trying to do something like this:minChartDate = currentDate.fullYear,currentDate.month,currentDate.date,0,0,0,0;

where currentDate:Date; is the day currently selected. I'm getting an implicit coercion error between the Number to Date type, as if currentDate.fullYear is a Date, but according to the documentation it should be a number. Or is my syntax defining this incorrect? Also wondering if there's a simpler way to get the min and max dates than this (the reason I am setting this is so that it starts at midnight rather than at the first data point in the series).

I'm also getting a weird error 'maximum' values of type Date cannot be represented in text.. it said I need a Date type object for the minimum and maximum so I'm really not sure what it's talking about...

View 1 Replies

ActionScript :: Parse JSON Dates With It?

May 11, 2011

I have dates in JSON which are generated from ASP.NET pages using the JSON.NET library. [code]...

How do I parse these with ActionScript from Flex 3 Professional? I'd like to have this in a native data format.

View 3 Replies

Flash :: Calculate Days Between Two Dates?

Sep 1, 2011

I use this script currently to determine the difference between two dates:

[Code]...

The problem with this is I want to monitor the actual physical day change so if someone accessed the application at 11:59 PM and then came back 5 minutes later this would register as a 1 day difference (a new day), this current script requires atleast 12 hours to have passed between two dates for it to register as a new day.

I have thought about using the date number etc, but because months and years are so different it is quite a complex route, there must be something simpler.

View 2 Replies

ActionScript 2.0 :: Can't Compare Dates In Array

Jan 29, 2010

I have a small problem with my script, and its due to the dates in the array. I have tried writing the dates in a different way, and that works well. However I need the dates as they are now, because of an other function later on.[code]...

View 1 Replies

ActionScript 3.0 :: Adding Numbers From Dates

Aug 10, 2011

i want to create a calculater that can add scores from a scale of 1 to 10.for example, if the player gets between 0-3, he gets a point

-between 4-7, he gets 2 points
-between 8-12, he gets 3 points

when this is complete, the points are added up, depending on what the player gets, for example he scores between 4-7 and between 8-12, he gets gets 5 pionts. i can get them to add the points, but not when its between a certain value

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved