Announcement

Collapse
No announcement yet.

WAS [mru] Time on orders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    WAS [mru] Time on orders



    This oughta do it. The time local time will be available for the final
    invoice screen and the fulfillment modules. The following is for mmui. I
    assume this would be possible with OpenUI.

    In MMUI_Order_Payment, change the form statement
    from:
    <FORM METHOD = "post" ACTION = "&[ l.url ]">
    to:
    <FORM NAME="payment" METHOD = "post" ACTION = "&[ l.url ]"
    onSubmit="javascript:var date = new Date();localtime.value=date;">
    <INPUT TYPE="hidden" NAME="localtime" VALUE="unavailable">

    Now g.localtime contains the "local time" as it is set on the users computer.
    Include it where you want.
    E.g., <MvEVAL EXPR="{ g.localtime }">

    IE returns Mon Jul 31 16:41:51 MDT 2000
    NS returns Mon Jul 31 16:26:16 GMT-0600 (Mountain Daylight Time) 2000

    Steve


    At 01:47 PM 7/31/00 -0600, Steven Hamilton wrote:
    >Could be done using javascript to get the time on the browser end.
    >Java script sets a variable called localtime.
    >Send the localtime=value pair as an arguement back to the miva script.
    >Now the date and time info including the timezone offset is available in
    >g.timezone. It won't be fun to code, but if someone is interested, we
    >could continue this on the coders list.
    >
    >At 11:26 PM 7/30/00 -0700, you wrote:
    >>I don't believe the browser provides this information to the server, so how
    >>would you be able to know the time zone of the browser? I guess it might be
    >>possible to somehow query the location of the browser's ip address and then
    >>find out their time zone. but I'm not sure how readily this information
    >>could be gotten?
    >>
    >>
    >>René Bilodeau, (SB-21 Programmer)
    >>
    >>,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_ .-:*'``'*:-,_ .-:*'``'*:-.
    >> STARBASE-21 -- <A HREF ="http://www.starbase21.com/">http://www.starbase21.com/</A>
    >> THE Source for Miva Merchant add-on modules
    >>,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_,.-:*'``'*:-.,_ .-:*'``'*:-,_ .-:*'``'*:-.
    >>
    >>
    >>----- Original Message -----
    >>From: "Deborah Currie" <[email protected]>
    >>To: "Merchant Users Group" <[email protected]>
    >>Sent: Sunday, July 30, 2000 11:00 PM
    >>Subject: [mru] Time on orders
    >>
    >>
    >>> How would I change the time on the orders so that it reads local time.
    >>>
    >>> For example it reads Placed : 07/30/2000 at 23:56:51 CDT
    >>> I would like it to read Placed : 07/31/2000 at 16:56:51 GMT +1200
    >>> GMT + ? depending on where the order is placed from
    >>>
    >>> Deborah Currie
    >>> Manager
    >>> Computer Pulse Ltd
    >>> FREE Ph. 0800 PC PULSE (727-857)
    >>> www.computerpulse.co.nz
    >>>
    >>>
    >>>
Working...
X