Why is there a lag when using DateConvert with DateCompare?

I develop on my local server and my current time zone is GMT + 11 hours.

< cfset date1 = DateConvert ("Local2UTC", now())) >

< cfset date2 = ' 2014-03-06' > <!-->---(demain àle moment de la rédaction)

So, I expected that when I ran this code:

#DateCompare(date1,date2,'d') #.

that he would return "-1", but it is a '0', which means 'day' was the same.

So, to double check that I got out:

DateConvert ("Local2UTC", now()))

has caught its displayed value: {ts ' 2014-03-05 07:08:58 ""} and inserted as a comparison as well:
DateCompare ("{ts ' 2014-03-05 07:08:58"} ", date2, 'd') and of course, he returned a '-1' which reflects the day of date1 is in effect prior to the date 2.

Further investigation showed that I had to add my time zone difference to date2 in hours as well:

< cfset date2 = ' 2014-03-06 11:00 > for

#DateCompare(date1,date2,'d') #.

to return to a '-1 '.

Is this a bug or am I wrong?

Thanks for your explanation. My bad: it is now clear that I misunderstood. I'm sorry.

Apparently, in dateCompare, Coldfusion implicitly converts UTC local date2. I agree with you that this kind of interpretation is unacceptable. The developer should be to make the interpretation, and Coldfusion must simply compare the 2 values passed to the function. Indeed, you should report a bug.

Tags: ColdFusion

Similar Questions

  • Why is there the lag when the controls of the transformation of an image are changed

    I have not noticed this until the course of the latest updates.   When I manipulate the anchor point, position or scale an image using the sliders to entry in Control Panel under Motion effects image redrawn in the timeline is behind the entrance to the value of the slider with the mouse.   So when I click and drag the x value of the position property of the image does not seem to move at the same speed that the value is changed by the mouse.    It feels like the image try constantly catching up to the value being edited.    It makes it quite difficult to use visually control transform simple handling.

    My best guess is that the most recent update uses the GPU to redraw the images in a way that causes redraw poor and problems behind.   Unfortunately I found the user interface of many Adobe products becoming more and more difficult to use because of problems of refreshment and buggy redrawing issues.

    Can I solve this problem of lag when you change the values for transform a sequence or an image in the Panel effects/movement in some way?

    As I discovered under file > Project Settings > General in the rendering engine: only the Mercury playback engine software and was gray.    I had to update the Nvidia Quadro 5000 drivers version 340.84 to market the MPE GPU accelerated rendering engine.  This solved the problem of lag in refreshment for the images I use on the timeline.

    * I found it strange the GPU of MPE VAC. become disabled without warning until an update of my pilots was completed.

  • Why is there the lag when you press the SPACEBAR for playback in edit mode?

    When I press the SPACEBAR to start playback of a file in edit mode, a second of 2-3 delay before playback starts ago, this makes editing very difficult competently. does anyone know of any settings that may resolve this problem or may have another reason for why this might be happening?

    It may happen if the sampling frequency of your hearing file does not match that of your audio interface as hearing should make a conversion of the prior sampling rate it loads the audio buffer.

  • Lag when using track changes in the large document

    I do experience lag when using "track changes" in a large .pages document (about 180 pages). I get the wheel of the Rainbow for about 10 seconds after completing each change, which makes it very difficult to obtain concrete results. Other applications on my computer work simultaneously without a hiccup. I use the latest version of the pages on the latest Mac OS. Anyone with a similar problem? Tips to solve this problem?

    It's unfortunate that Apple has not adopted an icon "Achtung Minen!" for the v5 Pages. It is slower than the second coming on intermediate to large documents, and it only gets worse when you add images at higher resolution. Apple has not designed there is a professional-quality, or as a realistic replacement processor for MS Word.

    There is nothing you can do, but seriously, re - evaluate your software solution for processing.

    Here's an icon from the WAD of v5.6.2 request Pages. Prophetic isn't?

  • Why doesn't a USB drive I have previously used with AirPort extreme appear in the finder when used locally with my Mac?

    Why doesn't a USB drive I have previously used with AirPort extreme appear in the finder when used locally with my Mac?

    I tried to plug it into my mac to transfer files locally but will not be displayed in the finder or disk utility. Anyone know why?

    MacBook Pro (2015 retina) OS X 10.11.2 El Capitan

    Have you shut down / turning your Mac off... power off the USB drive... Connect the drive to the Mac... start up the Mac... then, turn on the USB drive?

    If no help, there are a number of posts to the thread in the forum El Capitan of support from users who have problems on their Mac USB.  You can post there to see if anyone has the answers.

    OS X El Capitan

  • Why are there no sound when the selection of input/output points ingest miniature?

    During the ingestion of video from an SD card, why is there no audio when you choose an entry/exit point before transcoding? Sometimes there is a specific sound bite to ingest a clip rather than the whole thing or try to guess where the sound bite begins or ends.

    Hi Tommy,.

    During the ingestion of video from an SD card, why is there no audio when you choose an entry/exit point before transcoding? Sometimes there is a specific sound bite to ingest a clip rather than the whole thing or try to guess where the sound bite begins or ends.

    That should work well. I just test it. Make sure that you have copied all the SD card before you start eating, not only the clips.

    Thank you

    Kevin

  • Why is there no sound when I import a mts file in Premiere CS6?

    I use Premiere Pro CS6 on a Win10 machine

    When I import mst files I get the video but no sound. Even if I read the files outside of Premiere Pro, the sound is there.

    I use this format for the best quality - all suggestions appreciated

    [title edited for clarity, mod]

    clearcomms-france wrote:

    I can't do that now as the memory cards have been cleared for later use. But can you tell me why that would make a difference?

    AVCHD can be a little 'difficult' with cs6 and you need all the metadata.

    Video and audio glitches. AVCHD video

    You don't need QuickTime for video sequences avchd.

  • Is there a function "when used"?

    Bridge (CC) has a function "when used" for the linked files?

    If I have a graph related to several different InDesign documents, can bridge show me where the graph is used?

    Thank you.

    Hi Kalaka,

    I am not afraid. Bridge cannot display a list of files related to an identity document given when you target, which is in fact thanks to engineers in ID. He has no idea where you might have used each file. Be nice if there was something that could track down, wouldn't it?

  • Lag when using effect animated

    Hello world!

    I have a little problem with my Version of CC ADOBE AFTER EFFECT 13.2.0.49

    When using effect animated like rain or a shake of VideoCopilot my After Effect get har GALs!

    * SHIFT when I apply the effect

    Here I am applying rains, same offset to shake or other animated effect

    * Lag when I try to move the animated effect layers

    I can post more video these lag if you need

    Can you help me please?

    I can't work...

    Twixtor Pro have applied to the project. It can take a lot of processing power. Make your model in a production format, do not use MP4 or h.264, then import the melted model and apply your simulation to the pre-rendered effect.

  • Is there a change to use mediaPlayer with InvokeManager?

    Hi I used mediaPlayer with InvokeManager to play streaming video

    But recently the mediaPlayer is unable to read the file

    Perhaps because upgrading to the new operating system

    It's my job

    void DetailPage::invokeMediaPlayer(QString aUrl)
    {
    InvokeManager invokeManager;
    InvokeRequest request;
    request.setTarget("sys.mediaplayer.previewer");
    request.setAction("bb.action.OPEN");
    request.setUri(QUrl(aUrl));
    InvokeTargetReply *reply = invokeManager.invoke(request);
    }
    

    When I read the documentation for the new update (release notes)

    Application integration (invocation framework) - in order to adequately support extended characters, the framework of the call games has updated its treatment of URIS to enable clients and targets to better co-ordinate their use of URI. The framework of the appeal now expected valid URIS to spend in their encrypted form to allow the targets to interpret them correctly. For the file URI, handling update ensures that the frame does not change the URI and delivers them as-is. With this change, only receiving targets URIs in invocations should expect to receive coded URIs and are required to decode them.

    What I need to change my code?

    Previously the job very well

    Thank you

    Sorry, in fact there are an error on my video webservice.

    So, there is nothing wrong with mediaPlayer on new SDK (10.0.9.2318)

    Thank you

  • Why my partially black screen when using win7?

    Hello everyone. I'm having this problem with my screen. When I start using my computer, the screen is very clear, but in a short time later, it darkens partially. I can still see what is happening, but the darkness makes it harder to see things. Can someone tell me why this is happening and how to fix. Thank you for any offer of assistance.

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

    You can check if there is an update for your display driver graphic card and search for hardware acceleration of related issues.

  • DW CS6 very slow, hangs, lags when using startup code.

    Hey guys,.

    I used bootstrap for awhile and never had any problems. All the South I hurt myself when lag using bootstrap. All of my pages Web saved locally using the bootstrap information now take 10-20 seconds to open a page, switch between open pages (tabs) even in mode code without live view activated. I tried to delete cache, some random reg-Edition and seen disableing CSS and Java. Nothing seems to help. I suspect it has something to do with my router, I had network problems recently too. I have to redirect ports for DW? Other solutions, what is ' y'all may think?

    .. try passing DW to my SSD and put the site out there.

    That sounds like a good plan.

    I've been asking questions here and there on this forum for years and it's always you, Nancy O, which seems to respond to...

    Serendipity?  I'm not an employee of Adobe.  I am a freelance web developer and graphic designer. Adobe employees have a STAFF badge with their name. I'm just a product users here who spends far too much time in these forums.

    To encourage participation, Adobe Community MVP and Forum Moderators are compensated with a free subscription to creative cloud.

    Join the experts

    Nancy O.

  • Why Firefox does not lag when scrolling through some websites?

    I tested my current profile with all my addons activated and compared it to a whole new addon-free profile. Own profile showed no difference in my current profile; the shift happens on the profile to both clean and current. Disabling scrolling without jolts and hardware acceleration allows nothing. This same site, chrome and Opera both show zero lag, the functions of the site perfectly.
    I use Linux as an operating system, but during startup in Windows FF, the lag is there too. IE scroll normally on this site too.

    Here is a page where the offset of scrolling happens. LAG happens during the major part of sites Yahoo, if I'm not mistaken.

    http://hockey.fantasysports.Yahoo.com/hockey/1954/2

    My hardware is not the issue, because I have this:
    Intel Core i3
    8 GB RAM
    Samsung SSD 840
    NVIDIA 460GTX 768 MB

    You can add this code into the userContent.css file.

    The file userChrome.css (UI) customization and userContent.css (Web sites) are located in the chrome folder in the Firefox profile folder.

    @-moz-document domain(hockey.fantasysports.yahoo.com) {
    html, body { background-attachment: scroll !important; }
    

    If you need it for other web pages to add the fields separated by commas.

    @-moz-document
     domain(hockey.fantasysports.yahoo.com),
     domain(xxx.com) { background-attachment: scroll !important; }
    
  • Why did Windows 7 freezing when using Firefox?

    S ' went for months now with many attempts to identify the cause. Came to the conclusion that it is Firefox but can't understand why.
    -If you use Firefox, my whole PC, not only Firefox freezes. Sometimes in the first 5 minutes of use of Firefox, other times it can happen an hour in a session. A hard reboot is the only way to get back to my Office I waited an hour before, after a freeze and nothing happens. The mouse pointer move, nothing.
    D ' first thought it was a hardware problem or a problem of antivirus protection.
    -Reinstalled windows on three different hard disks that all have the disk check. Still happens
    -Installed windows 8 to see if this could solve the problem. Nope, did the same thing on Windows 8.
    -Ran Memtest 86 + 14 hours overnight to see if it was my memory. No, zero found errors of memory
    -To be sure I even tried to use only a strip of ram in my PC at the same time to see if the chopsticks were bad. No, it froze with each stick
    -Tried to change my anti-virus. He froze with every single one, AVG Free, Avast free, Microsoft Security Essentials.
    -J' realized that my PC freezes only when I'm on the web in firefox. If I use chrome or Internet explorer, it doesn't happen. These total PC freezes happen when I use firefox.
    -My only adds on / plug that I use is Adblock more and more those who come with default Firefox.
    -My firefox is updated, I reset and reinstalled [everything by adding only Ad Block +] and again, this does not solve the problem
    -In the event log window, the only thing that happens every time my PC freezes is the error "Session"Microsoft Security customer OOBE"stopped because of the following error: 0xC000000D", why this would affect Firefox, I don't know.
    -I would like to understand the cause of this because I really want to use Firefox again.

    I finally understood that Firefox isn't the problem with this problem, but it's actually the Nvidia drivers. It's a shame as Nvidia pushes the hard driver updates. Drivers to eliminate this problem are 314.22. After you have uninstalled the latest drivers and replacing them with 314.22 I did have the problem at all in any program, including Firefox.

    Here's a thread from Nvidia on the issue.

    https://forums.GeForce.com/default/topic/596642/GeForce-drivers/please-help-event-ID-14-from-source-nvlddmkm-cannot-be-found/2/

    I had to replace a lot of my material before I figured out it was the Nvidia drivers because I don't have the correct error message on my old set up which pointed me in the direction of the video card.

    If someone has this problem I highly recommend demotion to 314.22 driver version if you have a Nvida GPU in your system.

    I'm very disappointed in Nvidia for not solving this problem after 15 + updated since 314.22 driver.

  • Why is there a picture when I open the music on my iPad Pro?

    When I open the music app, there is the image of a woman listening to music with headphones, and I don't know what to do to really see my music

    Go to SETTINGS > MUSIC and disable SHOW APPLE MUSIC

Maybe you are looking for